An awesome package is coming soon! 🎉
Project description
no-optional
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
Release history Release notifications | RSS feed
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
Close
Hashes for no_optional-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3290294161463d54bf36351714875eefdd0ed8b841f6107199b5a76a1324838c |
|
MD5 | 00e4cb0b51e7a8665464651486abc7b0 |
|
BLAKE2b-256 | 724a46a23e93a82fc9d6c4ee93bea1daccc182b6b516779ddd0ae1cf30937ca3 |