pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/python-gitlab/python-gitlab/commit/1c33080cf161481baada2afa2710b31675711285

mous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/global-5efd63e783ac04bb.css" /> Merge pull request #1727 from python-gitlab/jlvillal/mypy_strict_two_… · python-gitlab/python-gitlab@1c33080 · GitHub
Skip to content

Commit 1c33080

Browse files
authored
Merge pull request #1727 from python-gitlab/jlvillal/mypy_strict_two_steps
Enable more strict mypy checking
2 parents ab841b8 + f40e9b3 commit 1c33080

2 files changed

Lines changed: 18 additions & 2 deletions

File tree

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: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,25 @@ multi_line_output = 3
44
order_by_type = false
55

66
[tool.mypy]
7+
files = "."
8+
9+
# 'strict = true' is equivalent to the following:
10+
check_untyped_defs = true
711
disallow_incomplete_defs = true
12+
disallow_subclassing_any = true
13+
disallow_untyped_decorators = true
814
disallow_untyped_defs = true
9-
files = "."
15+
warn_redundant_casts = true
16+
warn_unused_configs = true
17+
warn_unused_ignores = true
18+
19+
# The following need to have changes made to be able to enable them:
20+
# disallow_any_generics = true
21+
# disallow_untyped_calls = true
22+
# no_implicit_optional = true
23+
# no_implicit_reexport = true
24+
# strict_equality = true
25+
# warn_return_any = true
1026

1127
[[tool.mypy.overrides]] # Overrides for currently untyped modules
1228
module = [

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

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