basedmypy icon indicating copy to clipboard operation
basedmypy copied to clipboard

support defining different categories of types

Open KotlinIsland opened this issue 1 year ago • 0 comments

in some ways, similar to Not types, but at the declaration site:

@category
class Missing:
    ....

a: object = Missing()  # error: "Missing" is in a different category to `object`, despite inheriting from it at runtime

KotlinIsland avatar Sep 02 '24 05:09 KotlinIsland