basedmypy icon indicating copy to clipboard operation
basedmypy copied to clipboard

`ClassVar[Callable]` should not be assumed to be a `FunctionType`

Open KotlinIsland opened this issue 1 year ago • 0 comments

from typing import *
class A:
    a: ClassVar[Callable[[int], None]]

A().a(1)  # too many arguments

This is absolute nonsense

KotlinIsland avatar Jan 16 '24 04:01 KotlinIsland