Skip to main content

An awesome package is coming soon! 🎉

Project description

no-optional

Latest Commit
Package version

This codemod replaces typing.Optional[T] by typing.Union[T, None] in the codebase.

Installation

pip install no-optional

Usage

Run the following on the repository you want to format:

python -m libcst.tool initialize .

Then, add the no_optional modules to the modules list on the .libcst.codemod.yaml generated.

Then you are able to run:

python3 -m libcst.tool codemod main.NoOptionalCommand <files>

License

This project is licensed under the terms of the MIT license.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

no_optional-0.1.0-py3-none-any.whl (4.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page