File tree Expand file tree Collapse file tree 4 files changed +13
-12
lines changed Expand file tree Collapse file tree 4 files changed +13
-12
lines changed Original file line number Diff line number Diff line change 22# See https://pre-commit.com/hooks.html for more hooks
33repos :
44- repo : https://github.com/pre-commit/pre-commit-hooks
5- rev : v4.4 .0
5+ rev : v4.5 .0
66 hooks :
77 - id : check-added-large-files
88 - id : check-toml
@@ -12,18 +12,18 @@ repos:
1212 - id : end-of-file-fixer
1313 - id : trailing-whitespace
1414- repo : https://github.com/asottile/pyupgrade
15- rev : v3.9 .0
15+ rev : v3.15 .0
1616 hooks :
1717 - id : pyupgrade
1818 args :
1919 - --py38-plus
2020- repo : https://github.com/charliermarsh/ruff-pre-commit
21- rev : v0.0.278
21+ rev : v0.0.292
2222 hooks :
2323 - id : ruff
2424 args :
2525 - --fix
2626- repo : https://github.com/psf/black
27- rev : 23.7.0
27+ rev : 23.9.1
2828 hooks :
2929 - id : black
Original file line number Diff line number Diff line change @@ -44,18 +44,18 @@ Changelog = "https://jowilf.github.io/sqlalchemy-file/changelog/"
4444[project .optional-dependencies ]
4545test = [
4646 " pytest >=7.2.0, <7.5.0" ,
47- " mypy ==1.4 .1" ,
48- " ruff ==0.0.278 " ,
49- " black ==23.7.0 " ,
47+ " mypy ==1.5 .1" ,
48+ " ruff ==0.0.292 " ,
49+ " black ==23.9.1 " ,
5050 " coverage >=7.0.0, <7.4.0" ,
51- " fasteners ==0.18 " ,
51+ " fasteners ==0.19 " ,
5252 " PyMySQL[rsa] >=1.0.2, <1.2.0" ,
5353 " psycopg2-binary >=2.9.5, <3.0.0" ,
5454 " Pillow >=9.4.0, <10.1.0" ,
5555 " python-multipart ==0.0.6" ,
5656 " fastapi >=0.92, <0.104" ,
5757 " Flask >=2.2, <2.3" ,
58- " Flask-SQLAlchemy >=3.0,<3.1 "
58+ " Flask-SQLAlchemy >=3.0,<3.2 "
5959]
6060doc = [
6161 " mkdocs-material >=9.0.0, <10.0.0" ,
Original file line number Diff line number Diff line change 11__version__ = "0.5.0"
22
3- from .file import File
4- from .types import FileField , ImageField
3+ from .file import File as File # noqa
4+ from .types import FileField as FileField # noqa
5+ from .types import ImageField as ImageField # noqa
Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ def process_result_value(
9595 ) -> Union [None , MutableList [File ], File ]:
9696 if value is None :
9797 return None
98- if type (value ) is dict :
98+ if isinstance (value , dict ) :
9999 return (
100100 MutableList ([self .upload_type .decode (value )])
101101 if self .multiple
You can’t perform that action at this time.
0 commit comments