Skip to content

Use type alias for dict#265

Open
ThomasKalverda wants to merge 1 commit into
tkrajina:devfrom
ThomasKalverda:patch-1
Open

Use type alias for dict#265
ThomasKalverda wants to merge 1 commit into
tkrajina:devfrom
ThomasKalverda:patch-1

Conversation

@ThomasKalverda

@ThomasKalverda ThomasKalverda commented Oct 23, 2023

Copy link
Copy Markdown

Fixes TypeError on python <3.9

  ...
    import gpxpy
  File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/gpxpy/__init__.py", line 17, in <module>
    from . import gpx as mod_gpx
  File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/gpxpy/gpx.py", line 27, in <module>
    from . import gpxfield as mod_gpxfield
  File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/gpxpy/gpxfield.py", line 36, in <module>
    class SimpleTZ(mod_datetime.tzinfo):
  File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/gpxpy/gpxfield.py", line 70, in SimpleTZ
    def __deepcopy__(self, memodict: Optional[dict[Any, Any]]={}) -> mod_datetime.tzinfo:
TypeError: 'type' object is not subscriptable

Fixes #266

Fixes TypeError on python <3.9
@tkrajina tkrajina force-pushed the dev branch 2 times, most recently from 352c97d to b866ab4 Compare August 5, 2024 10:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TypeError in gpxfield since 1.6.0 release

1 participant