Skip to content

Commit 815ce3d

Browse files
committed
Disable black on ServiceInfo.__init__ until black is fixed
Due to psf/black#759 black produces code that is invalid Python 3.5 syntax even with --target-version py35. This patch disables reformatting for this call (it doesn't seem to be possible per line) until it's fixed.
1 parent 07950d8 commit 815ce3d

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

zeroconf.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1430,6 +1430,9 @@ class ServiceInfo(RecordUpdateListener):
14301430

14311431
"""Service information"""
14321432

1433+
# FIXME(dtantsur): black 19.3b0 produces code that is not valid syntax on
1434+
# Python 3.5: https://github.com/python/black/issues/759
1435+
# fmt: off
14331436
def __init__(
14341437
self,
14351438
type_: str,
@@ -1491,6 +1494,7 @@ def __init__(
14911494
self._set_properties(properties)
14921495
self.host_ttl = host_ttl
14931496
self.other_ttl = other_ttl
1497+
# fmt: on
14941498

14951499
@property
14961500
def address(self):

0 commit comments

Comments
 (0)