autotyping: --none-return: add a -> None return type to functions without any return, yield, or raise in their body
This commit is contained in:
parent
4e5fe31572
commit
6c3f3afb3a
12 changed files with 184 additions and 182 deletions
|
@ -13,7 +13,7 @@ from .test_pylast import PyLastTestCase, load_secrets
|
|||
class TestPyLastWithLibreFm(PyLastTestCase):
|
||||
"""Own class for Libre.fm because we don't need the Last.fm setUp"""
|
||||
|
||||
def test_libre_fm(self):
|
||||
def test_libre_fm(self) -> None:
|
||||
# Arrange
|
||||
secrets = load_secrets()
|
||||
username = secrets["username"]
|
||||
|
@ -27,7 +27,7 @@ class TestPyLastWithLibreFm(PyLastTestCase):
|
|||
# Assert
|
||||
assert name == "Radiohead"
|
||||
|
||||
def test_repr(self):
|
||||
def test_repr(self) -> None:
|
||||
# Arrange
|
||||
secrets = load_secrets()
|
||||
username = secrets["username"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue