Skip to content

Commit 596edb2

Browse files
chore(pre-commit.ci): pre-commit autoupdate (#1381)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: J. Nick Koston <nick@koston.org>
1 parent 0c68d71 commit 596edb2

File tree

3 files changed

+6
-17
lines changed

3 files changed

+6
-17
lines changed

.pre-commit-config.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ ci:
99

1010
repos:
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]
@@ -53,7 +53,7 @@ repos:
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: []

src/zeroconf/__init__.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@
2020
USA
2121
"""
2222

23-
import sys
24-
2523
from ._cache import DNSCache # noqa # import needed for backwards compat
2624
from ._core import Zeroconf
2725
from ._dns import ( # noqa # import needed for backwards compat
@@ -114,12 +112,3 @@
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-
)

src/zeroconf/_engine.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
)

0 commit comments

Comments
 (0)