Skip to content

Deprecate typing imports off Dict, List, etc. #169

@svij-sc

Description

@svij-sc

From Python 3.9 onwards, you can directly use the built-in collection types for type annotations:
i.e.

def process_items(items: list[str]) -> dict[str, int]:

is now possible,
vs before we standardized around

from typing import List, Dict
def process_items(items: List[str]) -> Dict[str, int]:

We should shift away from use of typing module

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions