Skip to content

Commit

Permalink
Fixes python 3.9 not recognizing typing.Any properly
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomaz-Vieira committed Sep 16, 2024
1 parent 088f9b3 commit 71bcfbf
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions scripts/interactive_docs/hint.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
final,
)
from typing_extensions import TypeAliasType, assert_never
from typing_extensions import List, TypeAlias, Any
from typing_extensions import List, TypeAlias
import datetime
from xml.etree import ElementTree as et
import inspect
Expand Down Expand Up @@ -210,9 +210,8 @@ class YamlValueHint(Hint):
def do_parse(
cls, raw_hint: Any, parent_raw_hints: Sequence[Any]
) -> "Hint | Unrecognized | ParsingError":
if (
raw_hint == Any
): # FIXME: since the spec is yaml, "Any" mostly translates to YamlValue.... but is this always true?
# FIXME: since the spec is yaml, "Any" mostly translates to YamlValue.... but is this always true?
if raw_hint == typing.Any:
return YamlValueHint()
if raw_hint == "YamlValue":
return YamlValueHint()
Expand Down

0 comments on commit 71bcfbf

Please sign in to comment.