| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 64e8c31 commit 545d6d6
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -14,13 +14,15 @@ module = [ | |||
| 14 | 14 | "docs.ext.*", | |
| 15 | 15 | "tests.functional.*", | |
| 16 | 16 | "tests.functional.api.*", | |
| 17 | - "tests.meta.*", | ||
| 18 | 17 | "tests.unit.*", | |
| 19 | 18 | ] | |
| 20 | 19 | ignore_errors = true | |
| 21 | 20 | ||
| 22 | 21 | [[tool.mypy.overrides]] | |
| 23 | - module = "tests.smoke.*" | ||
| 22 | + module = [ | ||
| 23 | + "tests.meta.*", | ||
| 24 | + "tests.smoke.*", | ||
| 25 | + ] | ||
| 24 | 26 | disable_error_code = ["no-untyped-def"] | |
| 25 | 27 | ||
| 26 | 28 | [tool.semantic_release] | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -9,7 +9,7 @@ | |||
| 9 | 9 | import inspect | |
| 10 | 10 | from typing import Optional, Type | |
| 11 | 11 | ||
| 12 | - import _pytest | ||
| 12 | + import pytest | ||
| 13 | 13 | ||
| 14 | 14 | import gitlab.mixins | |
| 15 | 15 | import gitlab.v4.objects | |
@@ -19,7 +19,7 @@ | |||
| 19 | 19 | @dataclasses.dataclass(frozen=True) | |
| 20 | 20 | class ClassInfo: | |
| 21 | 21 | name: str | |
| 22 | - type: Type | ||
| 22 | + type: Type # type: ignore[type-arg] | ||
| 23 | 23 | ||
| 24 | 24 | def __lt__(self, other: object) -> bool: | |
| 25 | 25 | if not isinstance(other, ClassInfo): | |
@@ -32,7 +32,7 @@ def __eq__(self, other: object) -> bool: | |||
| 32 | 32 | return (self.type.__module__, self.name) == (other.type.__module__, other.name) | |
| 33 | 33 | ||
| 34 | 34 | ||
| 35 | - def pytest_generate_tests(metafunc: _pytest.python.Metafunc) -> None: | ||
| 35 | + def pytest_generate_tests(metafunc: pytest.Metafunc) -> None: | ||
| 36 | 36 | """Find all of the classes in gitlab.v4.objects and pass them to our test | |
| 37 | 37 | function""" | |
| 38 | 38 | ||
@@ -106,7 +106,7 @@ def test_check_get_without_id_function_type_hints( | |||
| 106 | 106 | def get_check_helper( | |
| 107 | 107 | self, | |
| 108 | 108 | *, | |
| 109 | - base_type: Type, | ||
| 109 | + base_type: Type, # type: ignore[type-arg] | ||
| 110 | 110 | class_info: ClassInfo, | |
| 111 | 111 | method_template: str, | |
| 112 | 112 | optional_return: bool, | |
| Back | FazBrowse Home | New Git URL |
0 commit comments