mirror of
https://github.com/astral-sh/ruff
synced 2026-01-07 14:44:17 -05:00
[ty] Use "cannot" consistently over "can not" (#21255)
This commit is contained in:
@@ -118,7 +118,7 @@ def takes_other_protocol(f: OtherProtocol): ...
|
||||
takes_other_protocol(SubclassOfAny())
|
||||
```
|
||||
|
||||
A subclass of `Any` cannot be assigned to literal types, since those can not be subclassed:
|
||||
A subclass of `Any` cannot be assigned to literal types, since those cannot be subclassed:
|
||||
|
||||
```py
|
||||
from typing import Any, Literal
|
||||
|
||||
Reference in New Issue
Block a user