Skip to content

Typeguard fails with 8.7.0 #272

@epenet

Description

@epenet

It worked fine with 8.6.1
See hacf-fr/renault-api#1234

<frozen importlib._bootstrap>:935: in _load_unlocked
    ???
.nox/typeguard-3-12/lib/python3.12/site-packages/typeguard/_importhook.py:98: in exec_module
    super().exec_module(module)
.nox/typeguard-3-12/lib/python3.12/site-packages/renault_api/kamereon/models.py:15: in <module>
    from . import helpers
<frozen importlib._bootstrap>:1360: in _find_and_load
    ???
<frozen importlib._bootstrap>:1331: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:935: in _load_unlocked
    ???
.nox/typeguard-3-12/lib/python3.12/site-packages/typeguard/_importhook.py:98: in exec_module
    super().exec_module(module)
<frozen importlib._bootstrap_external>:991: in exec_module
    ???
<frozen importlib._bootstrap_external>:1129: in get_code
    ???
.nox/typeguard-3-12/lib/python3.12/site-packages/typeguard/_importhook.py:87: in source_to_code
    return _call_with_frames_removed(
.nox/typeguard-3-12/lib/python3.12/site-packages/typeguard/_importhook.py:47: in _call_with_frames_removed
    return f(*args, **kwargs)
E     File "/home/runner/work/renault-api/renault-api/.nox/typeguard-3-12/lib/python3.12/site-packages/renault_api/kamereon/helpers.py", line 3
E       from __future__ import annotations
E       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
E   SyntaxError: from __future__ imports must occur at the beginning of the file

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions