diff options
author | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2023-05-02 13:39:00 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-02 11:39:00 +0000 |
commit | 87fe5e58c2013b4b1949836c142993464b153237 (patch) | |
tree | 8bb8cf54c4fef07c24a773b8f1e9d59aee07e0e6 /doc/data/messages/t/too-few-public-methods/good.py | |
parent | 3bb57fa7c9175a0fcc86dc025ffa17c5193920f7 (diff) | |
download | pylint-git-87fe5e58c2013b4b1949836c142993464b153237.tar.gz |
[doc] Apply black on the documentation where it makes sense (#8650)
Co-authored-by: Daniel van Noord <13665637+DanielNoord@users.noreply.github.com>
Diffstat (limited to 'doc/data/messages/t/too-few-public-methods/good.py')
-rw-r--r-- | doc/data/messages/t/too-few-public-methods/good.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/doc/data/messages/t/too-few-public-methods/good.py b/doc/data/messages/t/too-few-public-methods/good.py index ca4b5b6fb..b0de1ef75 100644 --- a/doc/data/messages/t/too-few-public-methods/good.py +++ b/doc/data/messages/t/too-few-public-methods/good.py @@ -12,17 +12,22 @@ class Worm: def wiggle(self): print(f"{self.name} wiggle around wormily.") + # or + @dataclasses.dataclass class Worm: - name:str + name: str fruit_of_residence: Fruit + def bore(worm: Worm): print(f"{worm.name} is boring into {worm.fruit_of_residence}") + # or + def bore(fruit: Fruit, worm_name: str): print(f"{worm_name} is boring into {fruit}") |