Skip to content

Commit 6fdef4b

Browse files
committed
chore: stringify type aliases, so that Python 3.8 doesn't get confused
1 parent 56bb71c commit 6fdef4b

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

juju/client/connection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
from .facade import _JSON, _RICH_JSON, TypeEncoder
2727
from .facade_versions import client_facade_versions, known_unsupported_facades
2828

29-
SPECIFIED_FACADES: TypeAlias = dict[str, dict[Literal["versions"], Sequence[int]]]
29+
SPECIFIED_FACADES: TypeAlias = "dict[str, dict[Literal['versions'], Sequence[int]]]"
3030
_WebSocket: TypeAlias = "websockets.legacy.client.WebSocketClientProtocol"
3131

3232
LEVELS = ["TRACE", "DEBUG", "INFO", "WARNING", "ERROR"]

juju/client/facade.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
from . import codegen
2424

2525
# Plain JSON, what is received from Juju
26-
_JSON_LEAF: TypeAlias = None | bool | int | float | str
26+
_JSON_LEAF: TypeAlias = "None | bool | int | float | str"
2727
_JSON: TypeAlias = "_JSON_LEAF|list[_JSON]|dict[str, _JSON]"
2828

2929
# Type-enriched JSON, what can be sent to Juju

0 commit comments

Comments
 (0)