Skip to content

Commit f40e9b3

Browse files
chore: enable 'warn_redundant_casts' for mypy
Enable 'warn_redundant_casts'for mypy and resolve one issue.
1 parent a86d049 commit f40e9b3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

gitlab/v4/objects/keys.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ def get(
3131
server_data = self.gitlab.http_get(self.path, **kwargs)
3232
if TYPE_CHECKING:
3333
assert isinstance(server_data, dict)
34-
return cast(Key, self._obj_cls(self, server_data))
34+
return self._obj_cls(self, server_data)

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ disallow_incomplete_defs = true
1212
disallow_subclassing_any = true
1313
disallow_untyped_decorators = true
1414
disallow_untyped_defs = true
15+
warn_redundant_casts = true
1516
warn_unused_configs = true
1617
warn_unused_ignores = true
1718

@@ -21,7 +22,6 @@ warn_unused_ignores = true
2122
# no_implicit_optional = true
2223
# no_implicit_reexport = true
2324
# strict_equality = true
24-
# warn_redundant_casts = true
2525
# warn_return_any = true
2626

2727
[[tool.mypy.overrides]] # Overrides for currently untyped modules

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy