Skip to content

migrate python collection types from typing types to native types (i.e. List[str] -> list[str]) #25

@ayubun

Description

@ayubun

the python typing types were introduced in python 3.5. in python 3.9, the typing types for collections became deprecated in favour of native typing, which was previously unsupported and wouldn't compile.

we use a lot of typing types for collections here in osprey, and we should probably migrate off of it if we want to make sure we are up to snuff for future python releases. it's also a lot cleaner, if nothing else c:

https://typing.python.org/en/latest/spec/historical.html#generics-in-standard-collections

check out this article for a more detailed breakdown

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions