Skip to content

Commit 46159ae

Browse files
authored
Update SQLAlchemy stubs for 1.4.31 (#6990)
1 parent 9b50117 commit 46159ae

File tree

1 file changed

+9
-1
lines changed
  • stubs/SQLAlchemy/sqlalchemy/dialects/mssql

1 file changed

+9
-1
lines changed

stubs/SQLAlchemy/sqlalchemy/dialects/mssql/base.pyi

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
from typing import Any
1+
from typing import Any, overload
2+
from typing_extensions import Literal
23

34
import sqlalchemy.types as sqltypes
45

@@ -93,6 +94,13 @@ class NTEXT(sqltypes.UnicodeText):
9394

9495
class VARBINARY(sqltypes.VARBINARY, sqltypes.LargeBinary):
9596
__visit_name__: str
97+
filestream: bool
98+
@overload
99+
def __init__(self, length: Literal["max"] | None, filestream: Literal[True]) -> None: ...
100+
@overload
101+
def __init__(self, *, filestream: Literal[True]) -> None: ...
102+
@overload
103+
def __init__(self, length: Any | None = ..., filestream: Literal[False] = ...) -> None: ...
96104

97105
class IMAGE(sqltypes.LargeBinary):
98106
__visit_name__: str

0 commit comments

Comments
 (0)