Skip to content

Commit

Permalink
feat: add a cache to service_type_name (#1211)
Browse files Browse the repository at this point in the history
  • Loading branch information
bdraco committed Aug 3, 2023
1 parent cbca88c commit 53a694f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/zeroconf/_utils/name.py
Expand Up @@ -35,6 +35,7 @@
)


@lru_cache(maxsize=512)
def service_type_name(type_: str, *, strict: bool = True) -> str: # pylint: disable=too-many-branches
"""
Validate a fully qualified service name, instance or subtype. [rfc6763]
Expand Down

0 comments on commit 53a694f

Please sign in to comment.