Skip to content

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

Description

@mkunesch

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!

Activity

  1. mkunesch commented on Oct 10, 2022

    @mkunesch
    Author

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions