Skip to content

typing.Self #105

Description

@russbiggs

Privileged issue

  • I'm @russbiggs or he asked me directly to create an issue here.

Issue Content

Once 3.10 hits EOL we can adopt the more modern typing.Self which is current >=3.11 https://peps.python.org/pep-0673/.

This would allow us to update some of the client return typing:

   def __enter__(self) -> OpenAQ:
        """Enters the context manager, returning the client instance."""
        return self

to

   def __enter__(self) -> Self:
        """Enters the context manager, returning the client instance."""
        return self

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.11+Features to consider when 3.10 EOLenhancementNew feature or request

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions