diff --git a/pyproject.toml b/pyproject.toml index 51e6159129..6008571059 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -32,21 +32,21 @@ classifiers = [ [tool.poetry.dependencies] python = "^3.7" -SQLAlchemy = ">=2.0.0,<=2.0.11" -pydantic = { version = ">=2.1.1,<=2.4", extras = ["email"] } +SQLAlchemy = ">=2.0.0,<=2.0.21" +pydantic = { version = ">=2.1.1,<=2.4.2", extras = ["email"] } [tool.poetry.dev-dependencies] pytest = "^7.0.1" mypy = "0.971" -flake8 = "^5.0.4" +flake8 = [{ version = ">=5.0.4, <6.0.0", python = "<3.8.1" }, { version = ">=6.1.0", python = ">=3.8.1"}] black = "^22.10.0" -mkdocs = "^1.2.1" -mkdocs-material = "^8.1.4" +mkdocs = [{ version = "<=1.2.4", python = "<3.8.1" }, { version = ">=1.5.3", python = ">=3.8.1"} ] +mkdocs-material = [{ version = "<=8.2.7", python = "<3.8.1" }, { version = ">=9.4.5", python = ">=3.8.1"}] pillow = "^9.3.0" cairosvg = "^2.5.2" mdx-include = "^1.4.1" coverage = {extras = ["toml"], version = "^6.2"} -fastapi = "^0.100.0" +fastapi = "^0.103.2" requests = "^2.26.0" autoflake = "^1.4" isort = "^5.9.3" diff --git a/sqlmodel/orm/session.py b/sqlmodel/orm/session.py index dab26c3e12..fae5bbb7a6 100644 --- a/sqlmodel/orm/session.py +++ b/sqlmodel/orm/session.py @@ -85,7 +85,7 @@ def get( ident: Any, options: Optional[Sequence[Any]] = None, populate_existing: bool = False, - with_for_update: Optional[_ForUpdateArg] = None, + with_for_update: Union[_ForUpdateArg, None, bool, Dict[str, Any]] = None, identity_token: Optional[Any] = None, execution_options: Mapping[Any, Any] = util.EMPTY_DICT, bind_arguments: Optional[Dict[str, Any]] = None,