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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.11+Features to consider when 3.10 EOLenhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions