Skip to content

Commit b33d850

Browse files
author
MomIsBestFriend
committed
Removed classes, replaced with foo/bar
1 parent 594cefc commit b33d850

File tree

1 file changed

+4
-21
lines changed

1 file changed

+4
-21
lines changed

doc/source/development/contributing_code_guide.rst

+4-21
Original file line numberDiff line numberDiff line change
@@ -24,33 +24,16 @@ For example:
2424

2525
.. code-block:: python
2626
27-
class MyClass:
28-
def __init__(self):
29-
cls = type(self)
30-
31-
**Good:**
32-
33-
.. code-block:: python
34-
35-
class MyClass:
36-
def __init__(self):
37-
name = type(self).__name__
27+
foo = "bar"
28+
type(foo)
3829
3930
**Bad:**
4031

4132
.. code-block:: python
4233
43-
class MyClass:
44-
def __init__(self):
45-
cls = self.__class__
46-
47-
**Bad:**
48-
49-
.. code-block:: python
34+
foo = "bar"
35+
foo.__class__
5036
51-
class MyClass:
52-
def __init__(self):
53-
name = self.__class__.__name__
5437
5538
String formatting
5639
=================

0 commit comments

Comments
 (0)