A flake8 plugin to report on double underscore class objects
Project description
flake8-dunder-class-obj
A flake8 plugin which marks classes with leading double-underscored (dunder) class objects. A double underscored class object is subject to "Name Mangling", which can be a surprising behavior.
class Test:
__my_var = 1
This is an example of a variable with a double underscore. It will be flagged with a
message:
DCO100: class objects should not begin with __ unless name mangling is desired
See: Python private variables for more information about name mangling.
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
Close
Hashes for flake8-dunder-class-obj-0.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 11255572769c7e245e5b74aaf843fbf854079c6fb7cf9125ce6dffb867f93401 |
|
MD5 | 780b5a61ce7b821cd82ce8a33681465c |
|
BLAKE2b-256 | 82c926ec6bc913bdb746ac3755c179bd7d5b47b00aeaa0ddd260a8af4df96794 |
Close
Hashes for flake8_dunder_class_obj-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 82f35fea8cb36fa7239e0a1467cf916e30c65f0ae093538a8b9213cb1a85cc19 |
|
MD5 | 3cd3acc34a8215bb5a0ca13aa9f6b9f0 |
|
BLAKE2b-256 | e2aa1dea3fe254df2e15d715f20c69a90c43299a9f8fe7dfda491e771ed08f2f |