mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 04:54:47 +08:00
Py2 SQLAlchemy: Move some TypeEngine functions from subclasses to TypeEngine (#724)
This commit is contained in:
committed by
Guido van Rossum
parent
6887edebda
commit
5dbc7d1db6
9
third_party/2/sqlalchemy/sql/sqltypes.pyi
vendored
9
third_party/2/sqlalchemy/sql/sqltypes.pyi
vendored
@@ -8,12 +8,6 @@ class String(TypeEngine, Concatenable):
|
||||
convert_unicode=False,
|
||||
unicode_error=None,
|
||||
_warn_on_bytestring=False): ...
|
||||
def literal_processor(self, dialect): ...
|
||||
def bind_processor(self, dialect): ...
|
||||
def result_processor(self, dialect, coltype): ...
|
||||
@property
|
||||
def python_type(self): ...
|
||||
def get_dbapi_type(self, dbapi): ...
|
||||
|
||||
class Text(String): ...
|
||||
class Unicode(String): ...
|
||||
@@ -23,7 +17,8 @@ class SmallInteger(Integer): ...
|
||||
class BigInteger(Integer): ...
|
||||
class Numeric(TypeEngine, _DateAffinity): ...
|
||||
class Float(Numeric): ...
|
||||
class DateTime(TypeEngine, _DateAffinity): ...
|
||||
class DateTime(TypeEngine, _DateAffinity):
|
||||
def __init__(self, timezone=None): ...
|
||||
class Date(TypeEngine, _DateAffinity): ...
|
||||
class Time(TypeEngine, _DateAffinity): ...
|
||||
class _Binary(TypeEngine): ...
|
||||
|
||||
9
third_party/2/sqlalchemy/sql/type_api.pyi
vendored
9
third_party/2/sqlalchemy/sql/type_api.pyi
vendored
@@ -1,7 +1,14 @@
|
||||
from .. import util
|
||||
from .visitors import Visitable, VisitableType
|
||||
|
||||
class TypeEngine(Visitable): ...
|
||||
class TypeEngine(Visitable):
|
||||
@property
|
||||
def python_type(self): ...
|
||||
def get_dbapi_type(self, dbapi): ...
|
||||
def literal_processor(self, dialect): ...
|
||||
def bind_processor(self, dialect): ...
|
||||
def result_processor(self, dialect, coltype): ...
|
||||
|
||||
class VisitableCheckKWArg(util.EnsureKWArgType, VisitableType): ...
|
||||
# TODO: class UserDefinedType(util.with_metaclass(VisitableCheckKWArg, TypeEngine)):
|
||||
class UserDefinedType(VisitableCheckKWArg, TypeEngine): ...
|
||||
|
||||
Reference in New Issue
Block a user