Newest questions tagged python - Stack Overflow
Why this `attr` class adds `Any` to its attributes' type annotations?
I have this attr class: import attr @attr.s class Foo: a = attr.ib() # type: int f = Foo(1, 2) I have latest Pyright and Python 3.10. Pyright warns Error: Expected 0 positional arguments in the line Foo(1, 2). The
View original source