Skip to content

Modernize type hints in utils/ module to Python 3.12+ syntax #45

@davidpoblador

Description

@davidpoblador

Summary

The utils module uses legacy typing imports that can be replaced with Python 3.12+ built-in syntax.

File to update

  • src/blogtuner/utils/images.py

Current import

from typing import Optional, Self

Proposed change

from typing import Self

Then replace all Optional[X] with X | None in the file.

Priority

Medium

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