File tree Expand file tree Collapse file tree 5 files changed +11
-9
lines changed Expand file tree Collapse file tree 5 files changed +11
-9
lines changed Original file line number Diff line number Diff line change 1
1
repos :
2
2
# dogfood
3
3
- repo : https://github.com/python-jsonschema/check-jsonschema
4
- rev : 0.29.3
4
+ rev : 0.29.4
5
5
hooks :
6
6
- id : check-dependabot
7
7
- id : check-github-workflows
@@ -31,15 +31,15 @@ repos:
31
31
- ' flake8-typing-as-t==0.0.3'
32
32
- ' flake8-comprehensions==3.15.0'
33
33
- repo : https://github.com/sirosen/slyp
34
- rev : 0.7 .1
34
+ rev : 0.8 .1
35
35
hooks :
36
36
- id : slyp
37
37
- repo : https://github.com/PyCQA/isort
38
38
rev : 5.13.2
39
39
hooks :
40
40
- id : isort
41
41
- repo : https://github.com/asottile/pyupgrade
42
- rev : v3.17 .0
42
+ rev : v3.18 .0
43
43
hooks :
44
44
- id : pyupgrade
45
45
args : ["--py37-plus"]
Original file line number Diff line number Diff line change @@ -100,7 +100,9 @@ class FailedDownloadError(Exception):
100
100
101
101
102
102
class CacheDownloader :
103
- def __init__ (self , cache_dir : str | None = None , disable_cache : bool = False ):
103
+ def __init__ (
104
+ self , cache_dir : str | None = None , disable_cache : bool = False
105
+ ) -> None :
104
106
if cache_dir is None :
105
107
self ._cache_dir = _resolve_cache_dir ()
106
108
else :
@@ -170,7 +172,7 @@ def __init__(
170
172
downloader : CacheDownloader ,
171
173
* ,
172
174
validation_callback : t .Callable [[bytes ], t .Any ] | None = None ,
173
- ):
175
+ ) -> None :
174
176
self ._file_url = file_url
175
177
self ._filename = filename or file_url .split ("/" )[- 1 ]
176
178
self ._downloader = downloader
Original file line number Diff line number Diff line change 17
17
18
18
19
19
class _Exit (Exception ):
20
- def __init__ (self , code : int ):
20
+ def __init__ (self , code : int ) -> None :
21
21
self .code = code
22
22
23
23
@@ -31,7 +31,7 @@ def __init__(
31
31
format_opts : FormatOptions | None = None ,
32
32
traceback_mode : str = "short" ,
33
33
fill_defaults : bool = False ,
34
- ):
34
+ ) -> None :
35
35
self ._schema_loader = schema_loader
36
36
self ._instance_loader = instance_loader
37
37
self ._reporter = reporter
Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ def __init__(
117
117
encoding : str | None = None ,
118
118
errors : str | None = "strict" ,
119
119
atomic : bool = False ,
120
- ):
120
+ ) -> None :
121
121
self .name : str = os .fspath (filename )
122
122
self .mode = mode
123
123
self .encoding = encoding
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ def __init__(
10
10
self ,
11
11
* ,
12
12
on_data : t .Callable [[list | dict ], list | dict ] | None = None ,
13
- ):
13
+ ) -> None :
14
14
self .on_data = on_data
15
15
16
16
def modify_yaml_implementation (self , implementation : ruamel .yaml .YAML ) -> None :
You can’t perform that action at this time.
0 commit comments