Skip to content

Commit

Permalink
Merge pull request #85192 from Repiteo/scons-mypy-update
Browse files Browse the repository at this point in the history
SCons: Update mypy
  • Loading branch information
akien-mga committed Dec 11, 2023
2 parents ea15b4a + 8cd984b commit 2df8c3c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,9 @@ gmon.out
# Kdevelop
*.kdev4

# Mypy
.mypy_cache

# Qt Creator
*.config
*.creator
Expand Down
2 changes: 1 addition & 1 deletion gles3_builders.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ def build_gles3_header(
filename: str,
include: str,
class_suffix: str,
optional_output_filename: str = None,
optional_output_filename: Optional[str] = None,
header_data: Optional[GLES3HeaderStruct] = None,
):
header_data = header_data or GLES3HeaderStruct()
Expand Down
4 changes: 2 additions & 2 deletions glsl_builders.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def include_file_in_rd_header(filename: str, header_data: RDHeaderStruct, depth:


def build_rd_header(
filename: str, optional_output_filename: str = None, header_data: Optional[RDHeaderStruct] = None
filename: str, optional_output_filename: Optional[str] = None, header_data: Optional[RDHeaderStruct] = None
) -> None:
header_data = header_data or RDHeaderStruct()
include_file_in_rd_header(filename, header_data, 0)
Expand Down Expand Up @@ -198,7 +198,7 @@ def include_file_in_raw_header(filename: str, header_data: RAWHeaderStruct, dept


def build_raw_header(
filename: str, optional_output_filename: str = None, header_data: Optional[RAWHeaderStruct] = None
filename: str, optional_output_filename: Optional[str] = None, header_data: Optional[RAWHeaderStruct] = None
):
header_data = header_data or RAWHeaderStruct()
include_file_in_raw_header(filename, header_data, 0)
Expand Down
3 changes: 2 additions & 1 deletion misc/scripts/mypy.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[mypy]
ignore_missing_imports = true
ignore_missing_imports = True
disallow_any_generics = True
no_implicit_optional = True
pretty = True
show_column_numbers = True
warn_redundant_casts = True
Expand Down

0 comments on commit 2df8c3c

Please sign in to comment.