File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99
1010repos :
1111 - repo : https://github.com/commitizen-tools/commitizen
12- rev : v2.32.4
12+ rev : v3.27.0
1313 hooks :
1414 - id : commitizen
1515 stages : [commit-msg]
1616 - repo : https://github.com/pre-commit/pre-commit-hooks
17- rev : v4.3 .0
17+ rev : v4.6 .0
1818 hooks :
1919 - id : debug-statements
2020 - id : check-builtin-literals
@@ -29,12 +29,12 @@ repos:
2929 - id : trailing-whitespace
3030 - id : debug-statements
3131 - repo : https://github.com/pre-commit/mirrors-prettier
32- rev : v2.7.1
32+ rev : v4.0.0-alpha.8
3333 hooks :
3434 - id : prettier
3535 args : ["--tab-width", "2"]
3636 - repo : https://github.com/asottile/pyupgrade
37- rev : v2.37.3
37+ rev : v3.16.0
3838 hooks :
3939 - id : pyupgrade
4040 args : [--py37-plus]
5353 hooks :
5454 - id : flake8
5555 - repo : https://github.com/pre-commit/mirrors-mypy
56- rev : v0.931
56+ rev : v1.10.1
5757 hooks :
5858 - id : mypy
5959 additional_dependencies : []
Original file line number Diff line number Diff line change 2020USA
2121"""
2222
23- import sys
24-
2523from ._cache import DNSCache # noqa # import needed for backwards compat
2624from ._core import Zeroconf
2725from ._dns import ( # noqa # import needed for backwards compat
114112 "NotRunningException" ,
115113 "ServiceNameAlreadyRegistered" ,
116114]
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:
105105 sender_sockets .append (s )
106106
107107 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]
109109 lambda : AsyncListener (self .zc ), # type: ignore[arg-type, return-value]
110110 sock = s ,
111111 )
You can’t perform that action at this time.
0 commit comments