Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: None not a valid annotation (since PR #260) #270

Closed
mkunesch opened this issue Oct 10, 2022 · 1 comment
Closed

TypeError: None not a valid annotation (since PR #260) #270

mkunesch opened this issue Oct 10, 2022 · 1 comment

Comments

@mkunesch
Copy link

mkunesch commented Oct 10, 2022

Hi!

I think PR #260 introduced a TypeError:

Line 86 of _common.py reads:

@resolve.register
def _(cand: None) -> types.ModuleType:

and leads to AssertionError: Invalid annotation for 'cand'. None is not a class. from this line in functools.

Is a problem with using python 3.7?
Thanks a lot!

@mkunesch
Copy link
Author

mkunesch commented Oct 10, 2022

Sorry, the code should be absolutely fine. The error only arises when running sphinx on our code - not sure why. I'm closing this while I investigate further where the issue is.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant