Skip to content

Commit d940c27

Browse files
committed
document reason for multiple overloads
1 parent 1231a9c commit d940c27

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

plexapi/utils.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,9 @@ def cast(func: Type[float], value: Any) -> float:
157157
def cast(func: Type[str], value: Any) -> str:
158158
...
159159

160+
# multiple overloads needed as these are primitive types and also classes
161+
# generic type hints do not work here for that reason
162+
160163

161164
def cast(
162165
func: Type[Union[int, float, bool, str]], value: Any

0 commit comments

Comments
 (0)