Skip to content

Commit

Permalink
fix: fix no param
Browse files Browse the repository at this point in the history
  • Loading branch information
tlambert03 committed Jul 10, 2022
1 parent bd988a6 commit 9762e56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/in_n_out/_type_resolution.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ class method. This is done as follows:
"""
sig = Signature.from_callable(func)
hints = {}
if guess_self:
if guess_self and sig.parameters:
p0 = next(iter(sig.parameters.values()))
# The best identifier i can figure for a class method is that:
# 1. its qualname contains a period (e.g. "MyClass.my_method"),
Expand Down

0 comments on commit 9762e56

Please sign in to comment.