Skip to content

Commit

Permalink
Change annotation to make type checker happy
Browse files Browse the repository at this point in the history
  • Loading branch information
thatch committed Mar 10, 2020
1 parent fdf53ac commit 75d707f
Show file tree
Hide file tree
Showing 9 changed files with 19 additions and 19 deletions.
4 changes: 2 additions & 2 deletions libcst/_nodes/tests/test_atom.py
Original file line number Diff line number Diff line change
Expand Up @@ -1037,8 +1037,8 @@ def test_invalid(self, **kwargs: Any) -> None:
},
)
)
def test_versions(self, code, parser, expect_success) -> None:
self.assert_parses(code, parser, expect_success)
def test_versions(self, **kwargs: Any) -> None:
self.assert_parses(**kwargs)


class StringHelperTest(CSTNodeTest):
Expand Down
4 changes: 2 additions & 2 deletions libcst/_nodes/tests/test_dict.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,5 +187,5 @@ def test_invalid(self, **kwargs: Any) -> None:
},
)
)
def test_versions(self, code, parser, expect_success) -> None:
self.assert_parses(code, parser, expect_success)
def test_versions(self, **kwargs: Any) -> None:
self.assert_parses(**kwargs)
4 changes: 2 additions & 2 deletions libcst/_nodes/tests/test_funcdef.py
Original file line number Diff line number Diff line change
Expand Up @@ -2004,5 +2004,5 @@ def test_valid_38(self, node: cst.CSTNode, code: str) -> None:
},
)
)
def test_versions(self, code, parser, expect_success) -> None:
self.assert_parses(code, parser, expect_success)
def test_versions(self, **kwargs: Any) -> None:
self.assert_parses(**kwargs)
4 changes: 2 additions & 2 deletions libcst/_nodes/tests/test_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,5 +126,5 @@ def test_invalid(
},
)
)
def test_versions(self, code, parser, expect_success) -> None:
self.assert_parses(code, parser, expect_success)
def test_versions(self, **kwargs: Any) -> None:
self.assert_parses(**kwargs)
4 changes: 2 additions & 2 deletions libcst/_nodes/tests/test_matrix_multiply.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,5 +69,5 @@ def test_valid(self, **kwargs: Any) -> None:
},
)
)
def test_versions(self, code, parser, expect_success) -> None:
self.assert_parses(code, parser, expect_success)
def test_versions(self, **kwargs: Any) -> None:
self.assert_parses(**kwargs)
4 changes: 2 additions & 2 deletions libcst/_nodes/tests/test_set.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,5 +133,5 @@ def test_invalid(
},
)
)
def test_versions(self, code, parser, expect_success) -> None:
self.assert_parses(code, parser, expect_success)
def test_versions(self, **kwargs: Any) -> None:
self.assert_parses(**kwargs)
4 changes: 2 additions & 2 deletions libcst/_nodes/tests/test_tuple.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,5 +279,5 @@ def test_invalid(
},
)
)
def test_versions(self, code, parser, expect_success) -> None:
self.assert_parses(code, parser, expect_success)
def test_versions(self, **kwargs: Any) -> None:
self.assert_parses(**kwargs)
4 changes: 2 additions & 2 deletions libcst/_nodes/tests/test_with.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,5 +230,5 @@ def test_invalid(self, **kwargs: Any) -> None:
},
)
)
def test_versions(self, code, parser, expect_success) -> None:
self.assert_parses(code, parser, expect_success)
def test_versions(self, **kwargs: Any) -> None:
self.assert_parses(**kwargs)
6 changes: 3 additions & 3 deletions libcst/_nodes/tests/test_yield.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# LICENSE file in the root directory of this source tree.

# pyre-strict
from typing import Callable, Optional
from typing import Any, Callable, Optional

import libcst as cst
from libcst import parse_statement
Expand Down Expand Up @@ -240,5 +240,5 @@ def test_valid(
},
)
)
def test_versions(self, code, parser, expect_success) -> None:
self.assert_parses(code, parser, expect_success)
def test_versions(self, **kwargs: Any) -> None:
self.assert_parses(**kwargs)

0 comments on commit 75d707f

Please sign in to comment.