Skip to content

Commit 22b8719

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent d3afde2 commit 22b8719

File tree

3 files changed

+15
-18
lines changed

3 files changed

+15
-18
lines changed

tests/python_312/test_generic_objects.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# ruff: noqa: F821
21

32
import datetime
43
import sys

tests/python_312/test_generics_schema.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# ruff: noqa: F821
21

32
import sys
43
import textwrap

tests/python_312/test_inspect.py

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# ruff: noqa: F821
21

32
import pytest
43

@@ -13,14 +12,14 @@ def test_get_specialized_type_var_map_non_generic(value: type):
1312

1413
def test_get_specialized_type_var_map_generic_not_specialized():
1514
@strawberry.type
16-
class Foo[_T]: ...
15+
class Foo[T]: ...
1716

1817
assert get_specialized_type_var_map(Foo) == {}
1918

2019

2120
def test_get_specialized_type_var_map_generic():
2221
@strawberry.type
23-
class Foo[_T]: ...
22+
class Foo[T]: ...
2423

2524
@strawberry.type
2625
class Bar(Foo[int]): ...
@@ -30,7 +29,7 @@ class Bar(Foo[int]): ...
3029

3130
def test_get_specialized_type_var_map_from_alias():
3231
@strawberry.type
33-
class Foo[_T]: ...
32+
class Foo[T]: ...
3433

3534
SpecializedFoo = Foo[int]
3635

@@ -39,7 +38,7 @@ class Foo[_T]: ...
3938

4039
def test_get_specialized_type_var_map_from_alias_with_inheritance():
4140
@strawberry.type
42-
class Foo[_T]: ...
41+
class Foo[T]: ...
4342

4443
SpecializedFoo = Foo[int]
4544

@@ -51,7 +50,7 @@ class Bar(SpecializedFoo): ...
5150

5251
def test_get_specialized_type_var_map_generic_subclass():
5352
@strawberry.type
54-
class Foo[_T]: ...
53+
class Foo[T]: ...
5554

5655
@strawberry.type
5756
class Bar(Foo[int]): ...
@@ -64,10 +63,10 @@ class BarSubclass(Bar): ...
6463

6564
def test_get_specialized_type_var_map_double_generic():
6665
@strawberry.type
67-
class Foo[_T]: ...
66+
class Foo[T]: ...
6867

6968
@strawberry.type
70-
class Bar[_T](Foo[_T]): ...
69+
class Bar[T](Foo[T]): ...
7170

7271
@strawberry.type
7372
class Bin(Bar[int]): ...
@@ -77,10 +76,10 @@ class Bin(Bar[int]): ...
7776

7877
def test_get_specialized_type_var_map_double_generic_subclass():
7978
@strawberry.type
80-
class Foo[_T]: ...
79+
class Foo[T]: ...
8180

8281
@strawberry.type
83-
class Bar[_T](Foo[_T]): ...
82+
class Bar[T](Foo[T]): ...
8483

8584
@strawberry.type
8685
class Bin(Bar[int]): ...
@@ -93,10 +92,10 @@ class BinSubclass(Bin): ...
9392

9493
def test_get_specialized_type_var_map_double_generic_passthrough():
9594
@strawberry.type
96-
class Foo[_T]: ...
95+
class Foo[T]: ...
9796

9897
@strawberry.type
99-
class Bar[_K](Foo[_K]): ...
98+
class Bar[K](Foo[K]): ...
10099

101100
@strawberry.type
102101
class Bin(Bar[int]): ...
@@ -109,10 +108,10 @@ class Bin(Bar[int]): ...
109108

110109
def test_get_specialized_type_var_map_multiple_inheritance():
111110
@strawberry.type
112-
class Foo[_T]: ...
111+
class Foo[T]: ...
113112

114113
@strawberry.type
115-
class Bar[_K]: ...
114+
class Bar[K]: ...
116115

117116
@strawberry.type
118117
class Bin(Foo[int]): ...
@@ -128,10 +127,10 @@ class Baz(Bin, Bar[str]): ...
128127

129128
def test_get_specialized_type_var_map_multiple_inheritance_subclass():
130129
@strawberry.type
131-
class Foo[_T]: ...
130+
class Foo[T]: ...
132131

133132
@strawberry.type
134-
class Bar[_K]: ...
133+
class Bar[K]: ...
135134

136135
@strawberry.type
137136
class Bin(Foo[int]): ...

0 commit comments

Comments
 (0)