Skip to content

Commit 40e5c70

Browse files
committed
type to Type
1 parent 36d56b1 commit 40e5c70

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

stubs/peewee/peewee.pyi

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class DatabaseProxy(Proxy):
5555
def transaction(self, *args, **kwargs): ...
5656
def savepoint(self): ...
5757
@property
58-
def Model(self) -> type[Model]: ...
58+
def Model(self) -> Type[Model]: ...
5959

6060
class ModelDescriptor: ...
6161

@@ -96,7 +96,7 @@ class Context:
9696
scope_column: Incomplete
9797
def __enter__(self): ...
9898
def __exit__(
99-
self, exc_type: type[BaseException] | None, exc_val: BaseException | None, exc_tb: TracebackType | None
99+
self, exc_type: Type[BaseException] | None, exc_val: BaseException | None, exc_tb: TracebackType | None
100100
) -> None: ...
101101
def push_alias(self) -> Generator[None, None, None]: ...
102102
def sql(self, obj): ...
@@ -171,7 +171,7 @@ class _BoundTableContext(_callable_context_manager):
171171
def __init__(self, table, database) -> None: ...
172172
def __enter__(self): ...
173173
def __exit__(
174-
self, exc_type: type[BaseException] | None, exc_val: BaseException | None, exc_tb: TracebackType | None
174+
self, exc_type: Type[BaseException] | None, exc_val: BaseException | None, exc_tb: TracebackType | None
175175
) -> None: ...
176176

177177
class Table(_HashableSource, BaseTable):
@@ -703,7 +703,7 @@ class ExceptionWrapper:
703703
def __init__(self, exceptions) -> None: ...
704704
def __enter__(self) -> None: ...
705705
def __exit__(
706-
self, exc_type: type[BaseException] | None, exc_value: BaseException | None, traceback: TracebackType | None
706+
self, exc_type: Type[BaseException] | None, exc_value: BaseException | None, traceback: TracebackType | None
707707
) -> None: ...
708708

709709
class IndexMetadata(NamedTuple):
@@ -745,15 +745,15 @@ class _ConnectionLocal(_ConnectionState, threading.local): ...
745745
class _NoopLock:
746746
def __enter__(self): ...
747747
def __exit__(
748-
self, exc_type: type[BaseException] | None, exc_val: BaseException | None, exc_tb: TracebackType | None
748+
self, exc_type: Type[BaseException] | None, exc_val: BaseException | None, exc_tb: TracebackType | None
749749
) -> None: ...
750750

751751
class ConnectionContext(_callable_context_manager):
752752
db: Incomplete
753753
def __init__(self, db) -> None: ...
754754
def __enter__(self) -> None: ...
755755
def __exit__(
756-
self, exc_type: type[BaseException] | None, exc_val: BaseException | None, exc_tb: TracebackType | None
756+
self, exc_type: Type[BaseException] | None, exc_val: BaseException | None, exc_tb: TracebackType | None
757757
) -> None: ...
758758

759759
class Database(_callable_context_manager):
@@ -794,7 +794,7 @@ class Database(_callable_context_manager):
794794
def init(self, database, **kwargs) -> None: ...
795795
def __enter__(self): ...
796796
def __exit__(
797-
self, exc_type: type[BaseException] | None, exc_val: BaseException | None, exc_tb: TracebackType | None
797+
self, exc_type: Type[BaseException] | None, exc_val: BaseException | None, exc_tb: TracebackType | None
798798
) -> None: ...
799799
def connection_context(self): ...
800800
def connect(self, reuse_if_open: bool = False) -> bool: ...
@@ -846,7 +846,7 @@ class Database(_callable_context_manager):
846846
def bind_ctx(self, models: Iterable[Type[Model]], bind_refs: bool = ..., bind_backrefs: bool = ...): ...
847847
def get_noop_select(self, ctx): ...
848848
@property
849-
def Model(self) -> type[Model]: ...
849+
def Model(self) -> Type[Model]: ...
850850

851851
class SqliteDatabase(Database):
852852
field_types: Incomplete
@@ -992,14 +992,14 @@ class _manual(_callable_context_manager):
992992
def __init__(self, db) -> None: ...
993993
def __enter__(self) -> None: ...
994994
def __exit__(
995-
self, exc_type: type[BaseException] | None, exc_val: BaseException | None, exc_tb: TracebackType | None
995+
self, exc_type: Type[BaseException] | None, exc_val: BaseException | None, exc_tb: TracebackType | None
996996
) -> None: ...
997997

998998
class _atomic(_callable_context_manager):
999999
db: Incomplete
10001000
def __init__(self, db, *args, **kwargs) -> None: ...
10011001
def __enter__(self): ...
1002-
def __exit__(self, exc_type: type[BaseException] | None, exc_val: BaseException | None, exc_tb: TracebackType | None): ...
1002+
def __exit__(self, exc_type: Type[BaseException] | None, exc_val: BaseException | None, exc_tb: TracebackType | None): ...
10031003

10041004
class _transaction(_callable_context_manager):
10051005
db: Incomplete
@@ -1008,7 +1008,7 @@ class _transaction(_callable_context_manager):
10081008
def rollback(self, begin: bool = ...) -> None: ...
10091009
def __enter__(self): ...
10101010
def __exit__(
1011-
self, exc_type: type[BaseException] | None, exc_val: BaseException | None, exc_tb: TracebackType | None
1011+
self, exc_type: Type[BaseException] | None, exc_val: BaseException | None, exc_tb: TracebackType | None
10121012
) -> None: ...
10131013

10141014
class _savepoint(_callable_context_manager):
@@ -1020,7 +1020,7 @@ class _savepoint(_callable_context_manager):
10201020
def rollback(self) -> None: ...
10211021
def __enter__(self): ...
10221022
def __exit__(
1023-
self, exc_type: type[BaseException] | None, exc_val: BaseException | None, exc_tb: TracebackType | None
1023+
self, exc_type: Type[BaseException] | None, exc_val: BaseException | None, exc_tb: TracebackType | None
10241024
) -> None: ...
10251025

10261026
class CursorWrapper:
@@ -1582,7 +1582,7 @@ class _BoundModelsContext(_callable_context_manager):
15821582
def __init__(self, models, database, bind_refs, bind_backrefs) -> None: ...
15831583
def __enter__(self): ...
15841584
def __exit__(
1585-
self, exc_type: type[BaseException] | None, exc_val: BaseException | None, exc_tb: TracebackType | None
1585+
self, exc_type: Type[BaseException] | None, exc_val: BaseException | None, exc_tb: TracebackType | None
15861586
) -> None: ...
15871587

15881588
class Model(metaclass=ModelBase):

0 commit comments

Comments
 (0)