summaryrefslogtreecommitdiff
path: root/tests/meta/test_mro.py
diff options
context:
space:
mode:
authorJohn L. Villalovos <john@sodarock.com>2021-11-16 14:53:11 -0800
committerJohn L. Villalovos <john@sodarock.com>2021-11-16 14:59:20 -0800
commitba7707f6161463260710bd2b109b172fd63472a1 (patch)
treebade06dfa90e5977a584b4bb799a4d83b6a1b393 /tests/meta/test_mro.py
parent500895a518ecadbe89da61d9195350d7e3562566 (diff)
downloadgitlab-jlvillay/mypy_test_meta.tar.gz
chore: enable mypy for tests/meta/*jlvillay/mypy_test_meta
Diffstat (limited to 'tests/meta/test_mro.py')
-rw-r--r--tests/meta/test_mro.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/meta/test_mro.py b/tests/meta/test_mro.py
index 8f67b77..8558a8b 100644
--- a/tests/meta/test_mro.py
+++ b/tests/meta/test_mro.py
@@ -49,7 +49,7 @@ import pytest
import gitlab.v4.objects
-def test_show_issue():
+def test_show_issue() -> None:
"""Test case to demonstrate the TypeError that occurs"""
class RESTObject(object):
@@ -61,7 +61,7 @@ def test_show_issue():
with pytest.raises(TypeError) as exc_info:
# Wrong ordering here
- class Wrongv4Object(RESTObject, Mixin):
+ class Wrongv4Object(RESTObject, Mixin): # type: ignore
...
# The error message in the exception should be:
@@ -76,7 +76,7 @@ def test_show_issue():
...
-def test_mros():
+def test_mros() -> None:
"""Ensure objects defined in gitlab.v4.objects have REST* as last item in
class definition.