Skip to content

[bug] Tomllib import fails #799

Description

@afkfr0mkeyb0ard

Describe the bug
The tomlib import fails depending on the Python version, in objection/init.py

Evidence / Logs / Screenshots
The line 5 in objection/__init__.py:

import tomllib

should be replaced with

try:
    import tomllib
except ModuleNotFoundError:
    import tomli as tomllib

Environment (please complete the following information):

  • Python: 3.10.12

Metadata

Metadata

Assignees

No one assigned

    Labels

    freshissueDefault label for new, untriaged issues.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions