Skip to content

Commit 6c4f77c

Browse files
committed
3.9 support
1 parent e6e4b2f commit 6c4f77c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ggplotly/aes.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,9 @@ def __repr__(self) -> str:
162162

163163

164164
# Type alias for aesthetic values
165-
AesValue = str | after_stat | after_scale | stage | float | int | None
165+
# Using Union for runtime compatibility with Python 3.9
166+
from typing import Union
167+
AesValue = Union[str, after_stat, after_scale, stage, float, int, None]
166168

167169

168170
class aes:

0 commit comments

Comments
 (0)