diff options
Diffstat (limited to 'Lib/tomllib/_parser.py')
-rw-r--r-- | Lib/tomllib/_parser.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/tomllib/_parser.py b/Lib/tomllib/_parser.py index 0e522c3a69e..da56af3f34d 100644 --- a/Lib/tomllib/_parser.py +++ b/Lib/tomllib/_parser.py @@ -282,7 +282,7 @@ class NestedDict: cont = cont[-1] if not isinstance(cont, dict): raise KeyError("There is no nest behind this key") - return cont + return cont # type: ignore[no-any-return] def append_nest_to_list(self, key: Key) -> None: cont = self.get_or_create_nest(key[:-1]) @@ -741,7 +741,7 @@ def make_safe_parse_float(parse_float: ParseFloat) -> ParseFloat: instead of returning illegal types. """ # The default `float` callable never returns illegal types. Optimize it. - if parse_float is float: # type: ignore[comparison-overlap] + if parse_float is float: return float def safe_parse_float(float_str: str) -> Any: |