Skip to content

Commit ffdf86b

Browse files
committed
Fix linters
1 parent c74b3c6 commit ffdf86b

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/adaptix/_internal/type_tools/fwd_ref.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ def _get_caller_module(stack_offset: int):
1111

1212
for _ in range(stack_offset):
1313
frame = frame.f_back
14+
if frame is None:
15+
raise RuntimeError("Unexpected end of call stack")
1416
return sys.modules[frame.f_globals["__name__"]]
1517

1618

tests/unit/model_tools/introspection/test_namedtuple.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,7 @@ def test_rename():
356356
)
357357
)
358358

359+
359360
@requires(MAX_PY_314)
360361
def test_class_hinted_namedtuple():
361362
BarA = NamedTuple("BarA", a=int, b=str)

0 commit comments

Comments
 (0)