module documentation
Check for signs of poor design.
Class |
|
Checker of potential misdesigns. |
Function | register |
Undocumented |
Constant | DATACLASS |
Undocumented |
Constant | DATACLASSES |
Undocumented |
Constant | MSGS |
Undocumented |
Constant | SPECIAL |
Undocumented |
Constant | STDLIB |
Undocumented |
Constant | TYPING |
Undocumented |
Constant | TYPING |
Undocumented |
Function | _count |
Counts the number of boolean expressions in BoolOp `bool_op` (recursive). |
Function | _count |
Undocumented |
Function | _get |
Undocumented |
Function | _get |
Get parents of ``node``, excluding ancestors of ``ignored_parents``. |
Function | _is |
Check if a class is exempt from too-few-public-methods. |
Undocumented
Value |
|
Undocumented
Value |
|
Counts the number of boolean expressions in BoolOp `bool_op` (recursive). example: a and (b or c or (d and e)) ==> 5 boolean expressions
def _get_parents(node:
nodes.ClassDef
, ignored_parents: frozenset[ str]
) -> set[ nodes.ClassDef]
:
(source)
¶
Undocumented
def _get_parents_iter(node:
nodes.ClassDef
, ignored_parents: frozenset[ str]
) -> Iterator[ nodes.ClassDef]
:
(source)
¶
Get parents of ``node``, excluding ancestors of ``ignored_parents``. If we have the following inheritance diagram: F / D E \/ B C \/ A # class A(B, C): ... And ``ignored_parents`` is ``{"E"}``, then this function will return ``{A, B, C, D}`` -- both ``E`` and its ancestors are excluded.