crypt0lith
crypt0lith
> you could prove that to the type checker using `@overload` ```python from typing import Any, Literal, Self, overload class FloatContainer: a = 1 @overload def __getattribute__(self, name: Literal["__class__"], /)...
@dlech I was just about to comment the exact same thing. The test harness evaluates in a different order than the CLI. I was able to reproduce the bug on...
Yeah the bundled typeshed stubs on `main` use the lowercase form and assign `Sentinel = sentinel`. In #11896 I deleted the Python 3.15 test for `sentinel` and changed the existing...
Hi. The reason pyright reports this as an error is because a regular parameter can be passed both positionally and as a keyword: ```python def func(a: int) -> None: ......
https://pyright-play.net is up now, WHOIS also shows registry expiry date `2027-10-24T00:11:58Z`
Yeah the regression introduced a check that results in a self-referential assignment being marked as incomplete. That is what `t = g(t)` hits. #11936 is related but the inverse scenario:...
The original repro expected `reportIncompatibleMethodOverride` on this: ```python class HasGet(Protocol): def get(self: HasValue) -> int: ... class Impl(HasGet): def get(self) -> int: ... ``` That override is compatible. By the...