Skip to content

Commit 4c8b9c4

Browse files
committed
Fix getting args from staticmethods.
1 parent 298a525 commit 4c8b9c4

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

typemap/type_eval/_eval_operators.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -587,6 +587,9 @@ def _get_raw_args(tp, base_head, ctx) -> typing.Any:
587587

588588
return args
589589

590+
if tp_head is staticmethod:
591+
return typing.get_args(evaled)
592+
590593
# Scan the fully-annotated MRO to find the base
591594
box = _apply_generic.box(tp)
592595
for anc in box.mro:

0 commit comments

Comments
 (0)