Skip to content

Add more entries to prettify_special_methods.SPECIAL_METHODS #135

@eric-wieser

Description

@eric-wieser

There are a few you missed that could be added:

  • __call__(...)self(...)
  • __getattr__(attr)getattr(self, attr)
  • __setattr__(attr, value)setattr(self, attr, value)
  • __detattr__(attr)detattr(self, attr)
  • __index__()operator.index(self)
  • __length_hint__()operator.length_hint(self)
  • __ceil__()math.ceil(self)
  • __floor__()math.floor(self)
  • __trunc__()math.trunc(self)

Metadata

Metadata

Assignees

Labels

documentationSomething regarding our docs that is errorneous or could use an improvement

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions