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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

flake8_dunder_class_obj-0.1.1-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file flake8-dunder-class-obj-0.1.1.tar.gz.

File metadata

  • Download URL: flake8-dunder-class-obj-0.1.1.tar.gz
  • Upload date:
  • Size: 7.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.4.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.8.6

File hashes

Hashes for flake8-dunder-class-obj-0.1.1.tar.gz
Algorithm Hash digest
SHA256 11255572769c7e245e5b74aaf843fbf854079c6fb7cf9125ce6dffb867f93401
MD5 780b5a61ce7b821cd82ce8a33681465c
BLAKE2b-256 82c926ec6bc913bdb746ac3755c179bd7d5b47b00aeaa0ddd260a8af4df96794

See more details on using hashes here.

File details

Details for the file flake8_dunder_class_obj-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: flake8_dunder_class_obj-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 4.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.4.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.8.6

File hashes

Hashes for flake8_dunder_class_obj-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 82f35fea8cb36fa7239e0a1467cf916e30c65f0ae093538a8b9213cb1a85cc19
MD5 3cd3acc34a8215bb5a0ca13aa9f6b9f0
BLAKE2b-256 e2aa1dea3fe254df2e15d715f20c69a90c43299a9f8fe7dfda491e771ed08f2f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page