Skip to content

Comments

Feature implementation from commits 7f8f40c..9f8af01#2

Open
yashuatla wants to merge 8 commits intofeature-base-2from
feature-head-2
Open

Feature implementation from commits 7f8f40c..9f8af01#2
yashuatla wants to merge 8 commits intofeature-base-2from
feature-head-2

Conversation

@yashuatla
Copy link
Owner

@yashuatla yashuatla commented Jun 22, 2025

PR Summary

Update Type Annotations to Python 3.10+ Syntax

Overview

This PR modernizes type annotations throughout the codebase, migrating from the typing module syntax to Python 3.10+ native syntax (using the pipe operator | for unions and lowercase collection types).

Change Types

Type Description
Refactor Update type annotations from typing.Optional[T] to T | None
Refactor Change collection types from List[T], Set[T], etc. to list[T], set[T], etc.
Refactor Move imports from typing to collections.abc
Enhancement Add doctest examples to EntryPoint class documentation
Feature Add new internal class _EntryPointMatch

Affected Modules

Module / File Change Description
__init__.py Update type annotations, add _EntryPointMatch class, add doctests
_collections.py Change Pair from collections.namedtuple to typing.NamedTuple
_meta.py Update imports and type annotations

Notes for Reviewers

  • These changes maintain functional equivalence while adopting more modern Python type annotation syntax
  • The new _EntryPointMatch class inherits from types.SimpleNamespace

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants