File tree Expand file tree Collapse file tree 4 files changed +8
-5
lines changed Expand file tree Collapse file tree 4 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -11,3 +11,6 @@ ignore_errors = True
11
11
12
12
[mypy-lbox.exceptions]
13
13
ignore_missing_imports = True
14
+
15
+ [mypy-lbox.call_info"]
16
+ ignore_missing_imports = True
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ dependencies = [
12
12
" tqdm>=4.66.2" ,
13
13
" geojson>=3.1.0" ,
14
14
" mypy==1.10.1" ,
15
- " lbox-clients==1.1.0 " ,
15
+ " lbox-clients==1.1.1 " ,
16
16
]
17
17
readme = " README.md"
18
18
requires-python = " >=3.9,<3.13"
Original file line number Diff line number Diff line change 1
1
[project ]
2
2
name = " lbox-clients"
3
- version = " 1.1.0 "
3
+ version = " 1.1.1 "
4
4
description = " This module contains client sdk uses to conntect to the Labelbox API and backends"
5
5
authors = [
6
6
{ name = " Labelbox" , email = " engineering@labelbox.com" }
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ class _RequestInfo(TypedDict):
21
21
22
22
23
23
def call_info ():
24
- method_name = "Unknown"
24
+ method_name : str = "Unknown"
25
25
prefix = ""
26
26
class_name = ""
27
27
skip_methods = ["wrapper" , "__init__" , "execute" ]
@@ -32,7 +32,7 @@ def call_info():
32
32
for stack in reversed (inspect .stack ()):
33
33
if LABELBOX_CALL_PATTERN .search (stack .filename ):
34
34
call_info = stack
35
- method_name = call_info .function
35
+ method_name : str = call_info .function
36
36
class_name = call_info .frame .f_locals .get (
37
37
"self" , None
38
38
).__class__ .__name__
@@ -51,5 +51,5 @@ def call_info():
51
51
52
52
53
53
def call_info_as_str ():
54
- info = call_info ()
54
+ info : _RequestInfo = call_info ()
55
55
return f"{ info ['prefix' ]} { info ['class_name' ]} :{ info ['method_name' ]} "
You can’t perform that action at this time.
0 commit comments