Skip to main content

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


Download files

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

Source Distribution

flake8-dunder-class-obj-0.1.1.tar.gz (7.1 kB view hashes)

Uploaded Source

Built Distribution

flake8_dunder_class_obj-0.1.1-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