We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 594cefc commit b33d850Copy full SHA for b33d850
doc/source/development/contributing_code_guide.rst
@@ -24,33 +24,16 @@ For example:
24
25
.. code-block:: python
26
27
- class MyClass:
28
- def __init__(self):
29
- cls = type(self)
30
-
31
-**Good:**
32
33
-.. code-block:: python
34
35
36
37
- name = type(self).__name__
+ foo = "bar"
+ type(foo)
38
39
**Bad:**
40
41
42
43
44
45
- cls = self.__class__
46
47
-**Bad:**
48
49
+ foo.__class__
50
51
52
53
- name = self.__class__.__name__
54
55
String formatting
56
=================
0 commit comments