tardis4500 / BatCave

A useful collection of tools for writing Python programs.
MIT License
1 stars 0 forks source link

Error with new type specifier #70

Closed tardis4500 closed 11 months ago

tardis4500 commented 1 year ago

In GitLab by @arisilon on Jun 8, 2023, 19:21

>>> from batcave import servermgr
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Users\gmhum\Perforce\BatCave\batcave\servermgr.py", line 55, in <module>
    ServerType: TypeAlias = str | 'Server'
TypeError: unsupported operand type(s) for |: 'type' and 'str'
tardis4500 commented 1 year ago

In GitLab by @arisilon on Jun 8, 2023, 22:23

mentioned in commit b3bb8d5147e4836fb86fac8f14a602681be42c11