Skip to content

Commit ae4953c

Browse files
committed
fix: changed Textfield type to Field[T_STR] instead of Field[str]
1 parent fab2ca6 commit ae4953c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tortoise/fields/data.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ def SQL_TYPE(self) -> str:
276276
return f"NVARCHAR2({self.field.max_length})"
277277

278278

279-
class TextField(Field[str], str): # type: ignore
279+
class TextField(Field[T_STR], str): # type: ignore
280280
"""
281281
Large Text field.
282282
"""
@@ -286,7 +286,7 @@ class TextField(Field[str], str): # type: ignore
286286

287287
@overload
288288
def __init__(
289-
self,
289+
self: TextField[str],
290290
*,
291291
primary_key: bool | None = None,
292292
unique: bool = False,
@@ -297,7 +297,7 @@ def __init__(
297297

298298
@overload
299299
def __init__(
300-
self,
300+
self: TextField[str | None],
301301
*,
302302
primary_key: bool | None = None,
303303
unique: bool = False,

0 commit comments

Comments
 (0)