Skip to content

Commit

Permalink
Lints and pyre.
Browse files Browse the repository at this point in the history
  • Loading branch information
lisroach committed Apr 5, 2021
1 parent bae7f29 commit 157d79d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions fixit/common/full_repo_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,7 @@ def get_repo_caches(
caches.update(
dict.fromkeys(
paths_batch,
{
TypeInferenceProvider: PLACEHOLDER_CACHES[TypeInferenceProvider]
},
{TypeInferenceProvider: PLACEHOLDER_CACHES[TypeInferenceProvider]},
)
)
else:
Expand Down
4 changes: 2 additions & 2 deletions fixit/common/tests/test_full_repo_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ def emit(self, record: logging.LogRecord) -> None:

@patch("libcst.metadata.TypeInferenceProvider.gen_cache")
def test_get_repo_caches_empty_providers(self, gen_cache: MagicMock) -> None:
repo_caches: Mapping[str, Dict[ProviderT, object]] = get_repo_caches(
(self.DUMMY_PATH,), FullRepoMetadataConfig({}, 1)
repo_caches = get_repo_caches(
(self.DUMMY_PATH,), FullRepoMetadataConfig(set(), 1)
)

self.assertEqual(
Expand Down

0 comments on commit 157d79d

Please sign in to comment.