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 2
2
# See https://pre-commit.com/hooks.html for more hooks
3
3
repos :
4
4
- repo : https://github.com/pre-commit/pre-commit-hooks
5
- rev : v4.4 .0
5
+ rev : v4.5 .0
6
6
hooks :
7
7
- id : check-added-large-files
8
8
- id : check-toml
@@ -12,18 +12,18 @@ repos:
12
12
- id : end-of-file-fixer
13
13
- id : trailing-whitespace
14
14
- repo : https://github.com/asottile/pyupgrade
15
- rev : v3.9 .0
15
+ rev : v3.15 .0
16
16
hooks :
17
17
- id : pyupgrade
18
18
args :
19
19
- --py38-plus
20
20
- repo : https://github.com/charliermarsh/ruff-pre-commit
21
- rev : v0.0.278
21
+ rev : v0.0.292
22
22
hooks :
23
23
- id : ruff
24
24
args :
25
25
- --fix
26
26
- repo : https://github.com/psf/black
27
- rev : 23.7.0
27
+ rev : 23.9.1
28
28
hooks :
29
29
- id : black
Original file line number Diff line number Diff line change @@ -44,18 +44,18 @@ Changelog = "https://jowilf.github.io/sqlalchemy-file/changelog/"
44
44
[project .optional-dependencies ]
45
45
test = [
46
46
" 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 " ,
50
50
" coverage >=7.0.0, <7.4.0" ,
51
- " fasteners ==0.18 " ,
51
+ " fasteners ==0.19 " ,
52
52
" PyMySQL[rsa] >=1.0.2, <1.2.0" ,
53
53
" psycopg2-binary >=2.9.5, <3.0.0" ,
54
54
" Pillow >=9.4.0, <10.1.0" ,
55
55
" python-multipart ==0.0.6" ,
56
56
" fastapi >=0.92, <0.104" ,
57
57
" Flask >=2.2, <2.3" ,
58
- " Flask-SQLAlchemy >=3.0,<3.1 "
58
+ " Flask-SQLAlchemy >=3.0,<3.2 "
59
59
]
60
60
doc = [
61
61
" mkdocs-material >=9.0.0, <10.0.0" ,
Original file line number Diff line number Diff line change 1
1
__version__ = "0.5.0"
2
2
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(
95
95
) -> Union [None , MutableList [File ], File ]:
96
96
if value is None :
97
97
return None
98
- if type (value ) is dict :
98
+ if isinstance (value , dict ) :
99
99
return (
100
100
MutableList ([self .upload_type .decode (value )])
101
101
if self .multiple
You can’t perform that action at this time.
0 commit comments