Skip to main content

flake8-pep604

flake8 plugin which forbids use of typing.Union (in favour of |), per PEP 604.

Note the | notation is a syntax error for Python < 3.10. In this case you can use the annotations feature (see PEP 563).

flake8 Codes

Code Description
UNT001 Use | in place of typing.Union. See PEP-604

Motivation

Motivated by just wanting to make a codebase consistent in usage between typing.Union and union types.

Note you could also automate this via pyupgrade

Metadata

Release files for flake8-pep604 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for flake8-pep604 1.1.0
File Size Uploaded Provenance Actions
flake8_pep604-1.1.0.tar.gz 3.4 kB Without provenance Details for flake8_pep604-1.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for flake8-pep604 1.1.0
File Interpreter ABI Platform Actions
flake8_pep604-1.1.0-py3-none-any.whl Python 3 none any Details for flake8_pep604-1.1.0-py3-none-any.whl

Total release size: 7.0 kB

Release files / flake8_pep604-1.1.0.tar.gz

Download URL flake8_pep604-1.1.0.tar.gz
Size 3.4 kB
Tags Source
SHA-256 checksum
How to use checksums
e533659d0eda50fa83cbca9dde4f3a3fc0b1593d8cd7134e494ccd71102d3fb4
BLAKE2b-256 checksum
How to use checksums
5c63cac97e101d81b3ed33d2234e508423234fd17442adaca5551d8e6267fb0e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.10.5

Release files / flake8_pep604-1.1.0-py3-none-any.whl

Download URL flake8_pep604-1.1.0-py3-none-any.whl
Size 3.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6e0c4ef8bfa6377eed47df382bde1519a1ddde6508d18b32281846f5a3f77301
BLAKE2b-256 checksum
How to use checksums
2ebf1a3b881e61338f3726286edb400fc5933be3c0419252d873f71c09b3db81
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.10.5

Security for flake8-pep604 1.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page