Skip to content

Commit

Permalink
describe the test
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexWaygood committed Jan 17, 2025
1 parent 832ae84 commit 37f892e
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,10 @@ def _(x: type, y: type[int]):

### Disjoint `type[]` types are narrowed to `Never`

Here, `type[UsesMeta1]` and `type[UsesMeta2]` are disjoint because a common subclass of `UsesMeta1`
and `UsesMeta2` could only exist if a common subclass of their metaclasses could exist. This is
known to be impossible due to the fact that `Meta1` is marked as `@final`.

```py
from typing import final

Expand Down

0 comments on commit 37f892e

Please sign in to comment.