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
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 Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file add-return-None-to-init-1.0.0.tar.gz.
File metadata
- Download URL: add-return-None-to-init-1.0.0.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
806351d3798ded3cc4c05e7e0528bc7f5624828618e592c7e5d4c994a2152378
|
|
| MD5 |
67ad5e98252a4490971eb681778c9e9e
|
|
| BLAKE2b-256 |
7b9e814b65a7778fce0f14e1647aa2d5f79a0755ee48b5643a0b140d45b4d770
|
File details
Details for the file add_return_None_to_init-1.0.0-py3-none-any.whl.
File metadata
- Download URL: add_return_None_to_init-1.0.0-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8834db7b13cb2fdcaa48916a620313eeb17305100dae74d3c5bab858d3a95615
|
|
| MD5 |
d68e3536affaadb32660e067f84a935a
|
|
| BLAKE2b-256 |
392b6b4db459e806536f1ae3b1d88ba22139234d89bb467de76f98b118df7543
|