You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
during programming on the final project we encountered a small problem with the python version and current syntax which is not supported by older versions like 3.6 or 3.8. The problem hereby lies in the signature of HockeyEnv.__init__() method, where there was a pipe used to make something equivalent to Union[<type 1>, <type 2>] -> <type 1> | <type 2> as a union type annotation.
An easy fix would be either to increase the minimal python version until the point where it can support the pipe syntax. Another way would be to just convert <type 1> | <type 2> to Union[<type 1>, <type 2>].
Please let me know for option you would like to choose.
All the best, Robin
The text was updated successfully, but these errors were encountered:
RobinU434
changed the title
Python version collides with pipe "|"
Python version collides with pipe "|" syntax
Jan 16, 2025
Let's just convert it into Union[...]
Just asking, who is using 3.6? 3.8 was used last year and I am confused. Did we add the type specifier with the last pull request. Anyway, no problem. Let's fix that.
I was approached by a fellow student regarding a question with the cluster. As it turns out their container was running in python 3.8 (but now they use 3.12) and there the error occurred. So just to resolve this issue for people who could use 3.8 I opened up this issue. Thanks for the reply.
Good evening,
during programming on the final project we encountered a small problem with the python version and current syntax which is not supported by older versions like 3.6 or 3.8. The problem hereby lies in the signature of
HockeyEnv.__init__()
method, where there was a pipe used to make something equivalent toUnion[<type 1>, <type 2>]
-><type 1> | <type 2>
as a union type annotation.An easy fix would be either to increase the minimal python version until the point where it can support the pipe syntax. Another way would be to just convert
<type 1> | <type 2>
toUnion[<type 1>, <type 2>]
.Please let me know for option you would like to choose.
All the best, Robin
The text was updated successfully, but these errors were encountered: