Moussa-Mikhail
Moussa-Mikhail
# Bug Report `self: Self` (unwrapped) is accepted with no error. The same `Self`, wrapped in `Annotated` — e.g. `self: Annotated[Self, "tag"]` — raises `Method cannot have explicit self annotation...
**Bug Report** Mypy reports "Method cannot have explicit self annotation and Self type [misc]" when self or cls are annotated with Ident[Self] where ```type Ident[T] = T```. Since Ident[Self] =...
### Summary When Self is passed as an argument to a PEP 695 generic type alias in a method's self annotation (e.g. self: Mut[Self] with type Mut[T] = T) on...
### Summary Implicit dunder writes to intersection types don't bind methods to the entire intersection but only the first positive type to accept the write. This is the write side...
### Summary Reading an attribute that two intersected classes declare with different types combines both declared types into a true intersection (`P & Q`), but writing to that attribute only...
Identity aliases (type Identity[T] = T) are not handled properly in validateTypeVarUsage leading to two different bugs. This issue also affects Annotated[T, ""]. 1. When used to annotate an attribute...