Skip to content

Commit

Permalink
Merge pull request #595 from fedejaure/fix-types-zeroconf
Browse files Browse the repository at this point in the history
Fix zeroconf typing
  • Loading branch information
fedejaure authored Oct 19, 2023
2 parents 9e61e07 + 74255a5 commit 1c4956b
Show file tree
Hide file tree
Showing 3 changed files with 67 additions and 53 deletions.
113 changes: 62 additions & 51 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ mdns-beacon = 'mdns_beacon.cli.main:main'
[tool.poetry.dependencies]
python = "<3.12,>=3.8"
click = "^8.1.7"
zeroconf = "^0.64.1"
zeroconf = "^0.119.0"
rich = "^13.6.0"
python-slugify = "^8.0.1"
typing-extensions = "^4.8.0"
Expand Down
5 changes: 4 additions & 1 deletion src/mdns_beacon/cli/layouts.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,10 @@ def update_services(
"priority": info.priority,
"text": info.text.decode("utf8"),
"properties": {
k.decode("utf8"): v.decode("utf8") for k, v in info.properties.items()
(k.decode("utf8") if isinstance(k, bytes) else k): (
v.decode("utf8") if isinstance(v, bytes) else v
)
for k, v in info.properties.items()
},
}
self.live.update(self.renderable)

0 comments on commit 1c4956b

Please sign in to comment.