Skip to content

attribute type errors for logging LEVELS #69

@alec-bike

Description

@alec-bike

I've been using ty with circuitpython-stubs to type-check my CircuitPython code, which works well. Recently I started using adafruit-circuitpython-logging and the LEVELS global is throwing a type error.

I posted this to astral-sh/ty#2868 -- seems that LEVELS is handled differently in adafruit_logging compared to cpython, which is causing the type error.

Can LEVELS be handled in a similar way to cpython to avoid this type check error?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions