Skip to main content

Script to add None as return type to every __init__ in the codebase.

Project description

Automatic add 'None' return type to init

This moduel automatically adds None return type to every init function, i.e.

def __init__(...) -> None:

Usage

``sh usage: py-add-return-None-to-all-init [-h] [-d] PATH


You can run the module with
```sh
py-add-return-None-to-all-init MY_PYTHON_PROJ [--dry-run]

With the --dry-run flag it will only be verbose on what it's gonna perform without writing to disk. It will performs the actual run it the dry run flag is not presence.

Project details


Download files

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

Source Distribution

add-return-None-to-init-1.0.0.tar.gz (4.2 kB view hashes)

Uploaded Source

Built Distribution

add_return_None_to_init-1.0.0-py3-none-any.whl (4.7 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