Skip to content

(🐞) classmethod on TypedDict leads to "AssertionError: fallback can't be filled out until semanal" with --disallow-any-expr #13066

Closed
@KotlinIsland

Description

@KotlinIsland
from typing import TypedDict

class Foo(TypedDict):
    @classmethod  # E: AssertionError: fallback can't be filled out until semanal
    def baz(cls) -> "Foo": ...

This happens due to the Any expression (no-any-expr) trying to report an error.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions