Skip to content

refactor: modernize type hints and enable ruff UP#12

Open
purificant wants to merge 1 commit into
ActiveCampaign:mainfrom
purificant:refactor/modernize-type-hints
Open

refactor: modernize type hints and enable ruff UP#12
purificant wants to merge 1 commit into
ActiveCampaign:mainfrom
purificant:refactor/modernize-type-hints

Conversation

@purificant

Copy link
Copy Markdown
Contributor

This PR updates type hints to use modern python syntax for 3.10+ released in October 2021.

It can be reproduced with the following three actions:

  1. Add target-version = "py310" to pyproject.toml which explicitly tells ruff what the minimum supported python version is.
  2. Expand the ruff ruleset to include the UP rules.
  3. Run
ruff check postmark --fix
ruff format postmark

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.

1 participant