Skip to content

Commit 8190889

Browse files
alexmalyshevfacebook-github-bot
authored andcommitted
Move more test_static/ files to pyre-strict
Summary: Covers the files that are already passing with pyre-strict, no other changes beyond ```lang=plain s/pyre-unsafe/pyre-strict/ ``` are needed. Reviewed By: yoney Differential Revision: D79834158 fbshipit-source-id: ea9442c50815af2f874fc63551b87b60e3b86dbf
1 parent 7b49246 commit 8190889

40 files changed

Lines changed: 69 additions & 40 deletions

cinderx/PythonLib/test_cinderx/test_compiler/test_static/annotated.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Copyright (c) Meta Platforms, Inc. and affiliates.
22

3-
# pyre-unsafe
3+
# pyre-strict
4+
45
from cinderx.compiler.static.types import TypedSyntaxError
56

67
from .common import bad_ret_type, StaticTestBase

cinderx/PythonLib/test_cinderx/test_compiler/test_static/asyncs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Copyright (c) Meta Platforms, Inc. and affiliates.
22

3-
# pyre-unsafe
3+
# pyre-strict
44

55
from .common import StaticTestBase
66

cinderx/PythonLib/test_cinderx/test_compiler/test_static/augassign.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Copyright (c) Meta Platforms, Inc. and affiliates.
22

3-
# pyre-unsafe
3+
# pyre-strict
44

55
from .common import StaticTestBase
66

cinderx/PythonLib/test_cinderx/test_compiler/test_static/checked_dict.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Copyright (c) Meta Platforms, Inc. and affiliates.
22

3-
# pyre-unsafe
3+
# pyre-strict
4+
45
from __static__ import chkdict
56

67
import cinderx.jit

cinderx/PythonLib/test_cinderx/test_compiler/test_static/class_decorator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Copyright (c) Meta Platforms, Inc. and affiliates.
22

3-
# pyre-unsafe
3+
# pyre-strict
44

55
import unittest
66

cinderx/PythonLib/test_cinderx/test_compiler/test_static/crange.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Copyright (c) Meta Platforms, Inc. and affiliates.
22

3-
# pyre-unsafe
3+
# pyre-strict
4+
45
from cinderx.compiler.static.types import TypedSyntaxError
56

67
from .common import StaticTestBase

cinderx/PythonLib/test_cinderx/test_compiler/test_static/dataclass.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Copyright (c) Meta Platforms, Inc. and affiliates.
22

3-
# pyre-unsafe
3+
# pyre-strict
4+
45
# pyre-ignore[21]: Pyre doesn't know about dataclass internals.
56
from dataclasses import (
67
_DataclassParams,

cinderx/PythonLib/test_cinderx/test_compiler/test_static/decl_visitor.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Copyright (c) Meta Platforms, Inc. and affiliates.
22

3-
# pyre-unsafe
3+
# pyre-strict
4+
45
import ast
56
import re
67
from textwrap import dedent

cinderx/PythonLib/test_cinderx/test_compiler/test_static/double.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Copyright (c) Meta Platforms, Inc. and affiliates.
22

3-
# pyre-unsafe
3+
# pyre-strict
4+
45
from __static__ import TYPED_DOUBLE
56

67
import re

cinderx/PythonLib/test_cinderx/test_compiler/test_static/dynamic_return.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Copyright (c) Meta Platforms, Inc. and affiliates.
22

3-
# pyre-unsafe
3+
# pyre-strict
44

55
from .common import StaticTestBase
66

0 commit comments

Comments
 (0)