Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.
Sign up`s.kwonlydefaults` can be None #188
Comments
kernc
added a commit
to pdoc3/pdoc
that referenced
this issue
Apr 20, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
gsmcwhirter commentedApr 19, 2019
At
pdoc/pdoc/doc.py
Line 719 in 69ce624
s.kwonlydefaultscan apparently beNonein the case where there are keyword-only args, and none of those keyword-only args have defaults (e.g.,def foo(arg1, *, arg2, arg3). This raises aTypeError, not aKeyError. Perhaps it is worth adding theTypeErrorto the except clause?