Import Black's type aliases test (#9456)

This commit is contained in:
Micha Reiser 2024-01-10 13:37:17 +01:00 committed by GitHub
parent 58fcd96ac1
commit 79f4abbb8d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 26 additions and 3 deletions

View file

@ -0,0 +1 @@
{"target_version": "py312"}

View file

@ -0,0 +1,10 @@
type A=int
type Gen[T]=list[T]
type Alias[T]=lambda: T
type And[T]=T and T
type IfElse[T]=T if T else T
type One = int; type Another = str
class X: type InClass = int
type = aliased
print(type(42))

View file

@ -0,0 +1,15 @@
type A = int
type Gen[T] = list[T]
type Alias[T] = lambda: T
type And[T] = T and T
type IfElse[T] = T if T else T
type One = int
type Another = str
class X:
type InClass = int
type = aliased
print(type(42))

View file

@ -96,9 +96,6 @@ IGNORE_LIST = [
# Uses a different output format
"decorators.py",
# Ruff fails to parse because of a parser bug
"type_aliases.py" # #8900 #8899
]