fixes type

This commit is contained in:
Mose Müller 2024-04-25 10:51:53 +02:00
parent 768be76cc8
commit 5f7cc7f671

View File

@ -132,7 +132,7 @@ def parse_keyed_attribute(attr_string: str) -> tuple[str, str | float | int | No
```
"""
key = None
key: str | float | int | None = None
attr_name = attr_string
if "[" in attr_string and attr_string.endswith("]"):
attr_name, key_part = attr_string.split("[", 1)