Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Relax TypeDecorator.process_*_param to return Optional[Any] #206

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions sqlalchemy-stubs/sql/type_api.pyi
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import Any, Optional, Union, TypeVar, Generic, Type, Callable, ClassVar, Tuple, Mapping, overload, Text as typing_Text
from typing import Any, Optional, Union, TypeVar, Generic, Type, Callable, ClassVar, Tuple, Mapping, overload
from .. import util
from .visitors import Visitable as Visitable, VisitableType as VisitableType
from .base import SchemaEventTarget as SchemaEventTarget
Expand Down Expand Up @@ -91,8 +91,8 @@ class TypeDecorator(SchemaEventTarget, TypeEngine[_T]):
def type_engine(self, dialect: Dialect) -> TypeEngine[Any]: ...
def load_dialect_impl(self, dialect: Dialect) -> TypeEngine[Any]: ...
def __getattr__(self, key: str) -> Any: ...
def process_literal_param(self, value: Optional[_T], dialect: Dialect) -> Optional[str]: ...
def process_bind_param(self, value: Optional[_T], dialect: Dialect) -> Optional[typing_Text]: ...
def process_literal_param(self, value: Optional[_T], dialect: Dialect) -> Optional[Any]: ...
def process_bind_param(self, value: Optional[_T], dialect: Dialect) -> Optional[Any]: ...
def process_result_value(self, value: Optional[Any], dialect: Dialect) -> Optional[_T]: ...
def literal_processor(self, dialect: Dialect) -> Callable[[Optional[_T]], Optional[str]]: ...
def bind_processor(self, dialect: Dialect) -> Callable[[Optional[_T]], Optional[str]]: ...
Expand Down