mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
Update test for class to have argument params
This commit is contained in:
parent
e0bda82a13
commit
f917180904
|
@ -12,7 +12,15 @@ class Foo:
|
||||||
baz = 2
|
baz = 2
|
||||||
"""Docstring for class attribute Foo.baz."""
|
"""Docstring for class attribute Foo.baz."""
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self, qux, spam=False):
|
||||||
|
"""Start the Foo.
|
||||||
|
|
||||||
|
:param qux: The first argument to initialize class.
|
||||||
|
:type qux: string
|
||||||
|
:param spam: Spam me yes or no...
|
||||||
|
:type spam: bool
|
||||||
|
|
||||||
|
"""
|
||||||
#: Doc comment for instance attribute qux.
|
#: Doc comment for instance attribute qux.
|
||||||
self.qux = 3
|
self.qux = 3
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user