File tree Expand file tree Collapse file tree 3 files changed +6
-17
lines changed Expand file tree Collapse file tree 3 files changed +6
-17
lines changed Original file line number Diff line number Diff line change 9
9
10
10
repos :
11
11
- repo : https://github.com/commitizen-tools/commitizen
12
- rev : v2.32.4
12
+ rev : v3.27.0
13
13
hooks :
14
14
- id : commitizen
15
15
stages : [commit-msg]
16
16
- repo : https://github.com/pre-commit/pre-commit-hooks
17
- rev : v4.3 .0
17
+ rev : v4.6 .0
18
18
hooks :
19
19
- id : debug-statements
20
20
- id : check-builtin-literals
@@ -29,12 +29,12 @@ repos:
29
29
- id : trailing-whitespace
30
30
- id : debug-statements
31
31
- repo : https://github.com/pre-commit/mirrors-prettier
32
- rev : v2.7.1
32
+ rev : v4.0.0-alpha.8
33
33
hooks :
34
34
- id : prettier
35
35
args : ["--tab-width", "2"]
36
36
- repo : https://github.com/asottile/pyupgrade
37
- rev : v2.37.3
37
+ rev : v3.16.0
38
38
hooks :
39
39
- id : pyupgrade
40
40
args : [--py37-plus]
53
53
hooks :
54
54
- id : flake8
55
55
- repo : https://github.com/pre-commit/mirrors-mypy
56
- rev : v0.931
56
+ rev : v1.10.1
57
57
hooks :
58
58
- id : mypy
59
59
additional_dependencies : []
Original file line number Diff line number Diff line change 20
20
USA
21
21
"""
22
22
23
- import sys
24
-
25
23
from ._cache import DNSCache # noqa # import needed for backwards compat
26
24
from ._core import Zeroconf
27
25
from ._dns import ( # noqa # import needed for backwards compat
114
112
"NotRunningException" ,
115
113
"ServiceNameAlreadyRegistered" ,
116
114
]
117
-
118
- if sys .version_info <= (3 , 6 ): # pragma: no cover
119
- raise ImportError ( # pragma: no cover
120
- """
121
- Python version > 3.6 required for python-zeroconf.
122
- If you need support for Python 2 or Python 3.3-3.4 please use version 19.1
123
- If you need support for Python 3.5 please use version 0.28.0
124
- """
125
- )
Original file line number Diff line number Diff line change @@ -105,7 +105,7 @@ async def _async_create_endpoints(self) -> None:
105
105
sender_sockets .append (s )
106
106
107
107
for s in reader_sockets :
108
- transport , protocol = await loop .create_datagram_endpoint (
108
+ transport , protocol = await loop .create_datagram_endpoint ( # type: ignore[type-var]
109
109
lambda : AsyncListener (self .zc ), # type: ignore[arg-type, return-value]
110
110
sock = s ,
111
111
)
You can’t perform that action at this time.
0 commit comments