Skip to content

Update optional and union syntax in docs and code #3348

Description

@ToothyDev

Currently, both the docs and old code uses both the old style Union[...] and Optional[...] as well as the new style ... | ... and ... | None.

Given the new style is supported in all Python versions that Pycord currently supports, we should unify the syntax we use to use the new style; It also arguably makes them easier to read, particularly for large unions.

Scope is both all library code and all library docs, so this might be a large piece of repetitive work

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

    documentationImprovements or additions to documentationhold: discussionThis pull request needs to be further discussed between maintainerstypingIs related to / changes python typing

    Type

    Projects

    • Status
      Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions