Skip to content

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

Closed
@mkunesch

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!

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