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
1111
1212[mypy-lbox.exceptions]
1313ignore_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 = [
1212 " tqdm>=4.66.2" ,
1313 " geojson>=3.1.0" ,
1414 " mypy==1.10.1" ,
15- " lbox-clients==1.1.0 " ,
15+ " lbox-clients==1.1.1 " ,
1616]
1717readme = " README.md"
1818requires-python = " >=3.9,<3.13"
Original file line number Diff line number Diff line change 11[project ]
22name = " lbox-clients"
3- version = " 1.1.0 "
3+ version = " 1.1.1 "
44description = " This module contains client sdk uses to conntect to the Labelbox API and backends"
55authors = [
66 { name = " Labelbox" , email = " engineering@labelbox.com" }
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ class _RequestInfo(TypedDict):
2121
2222
2323def call_info ():
24- method_name = "Unknown"
24+ method_name : str = "Unknown"
2525 prefix = ""
2626 class_name = ""
2727 skip_methods = ["wrapper" , "__init__" , "execute" ]
@@ -32,7 +32,7 @@ def call_info():
3232 for stack in reversed (inspect .stack ()):
3333 if LABELBOX_CALL_PATTERN .search (stack .filename ):
3434 call_info = stack
35- method_name = call_info .function
35+ method_name : str = call_info .function
3636 class_name = call_info .frame .f_locals .get (
3737 "self" , None
3838 ).__class__ .__name__
@@ -51,5 +51,5 @@ def call_info():
5151
5252
5353def call_info_as_str ():
54- info = call_info ()
54+ info : _RequestInfo = call_info ()
5555 return f"{ info ['prefix' ]} { info ['class_name' ]} :{ info ['method_name' ]} "
You can’t perform that action at this time.
0 commit comments