Skip to content

Commit 14ebbc7

Browse files
author
Val Brodsky
committed
Update lbox-clients to 1.1.1
1 parent e561c57 commit 14ebbc7

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

libs/labelbox/mypy.ini

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,6 @@ ignore_errors = True
1111

1212
[mypy-lbox.exceptions]
1313
ignore_missing_imports = True
14+
15+
[mypy-lbox.call_info"]
16+
ignore_missing_imports = True

libs/labelbox/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
]
1717
readme = "README.md"
1818
requires-python = ">=3.9,<3.13"

libs/lbox-clients/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "lbox-clients"
3-
version = "1.1.0"
3+
version = "1.1.1"
44
description = "This module contains client sdk uses to conntect to the Labelbox API and backends"
55
authors = [
66
{ name = "Labelbox", email = "engineering@labelbox.com" }

libs/lbox-clients/src/lbox/call_info.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class _RequestInfo(TypedDict):
2121

2222

2323
def 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

5353
def call_info_as_str():
54-
info = call_info()
54+
info: _RequestInfo = call_info()
5555
return f"{info['prefix']}{info['class_name']}:{info['method_name']}"

0 commit comments

Comments
 (0)