Skip to content

Commit f96e1e6

Browse files
committed
Remove generated pyright directive stripping
1 parent 8b7b12c commit f96e1e6

1 file changed

Lines changed: 0 additions & 11 deletions

File tree

scripts/gen_nexus_system_api.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -67,16 +67,6 @@ def build_descriptor_set(descriptor_path: Path) -> None:
6767
)
6868

6969

70-
def strip_unsupported_pyright_comments() -> None:
71-
for path in output_dir.rglob("*.py"):
72-
content = path.read_text()
73-
content = content.replace("# pyright: reportAny=false\n", "")
74-
content = content.replace(
75-
"# pyright: reportAny=false, reportExplicitAny=false\n", ""
76-
)
77-
path.write_text(content)
78-
79-
8070
def generate_workflow_exports() -> None:
8171
spec = spec_from_file_location(
8272
"temporalio_nexus_system_workflow_service_exports",
@@ -148,7 +138,6 @@ def generate_nexus_system_api() -> None:
148138
)
149139

150140
(output_dir.parent / "__init__.py").touch()
151-
strip_unsupported_pyright_comments()
152141
generate_workflow_exports()
153142
subprocess.check_call(
154143
[

0 commit comments

Comments
 (0)