Skip to content

Commit

Permalink
Remove fixed linux platform for mypy typechecking
Browse files Browse the repository at this point in the history
Signed-off-by: Felix Schnabel <[email protected]>
  • Loading branch information
Shadow-Devil committed Nov 14, 2023
1 parent 4b7d97b commit d8556f3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion monai/apps/auto3dseg/data_analyzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ def get_all_case_stats(self, key="training", transform_list=None):
nprocs = torch.cuda.device_count()
logger.info(f"Found {nprocs} GPUs for data analyzing!")
if nprocs > 1:
tmp_ctx = get_context("forkserver")
tmp_ctx: Any = get_context("forkserver")
with tmp_ctx.Manager() as manager:
manager_list = manager.list()
processes = []
Expand Down
2 changes: 0 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,6 @@ extra_checks = True
# Allows variables to be redefined with an arbitrary type,
# as long as the redefinition is in the same block and nesting level as the original definition.
# allow_redefinition = True
# ForkServerContext is not supported on Windows.
platform = linux

exclude = venv/

Expand Down

0 comments on commit d8556f3

Please sign in to comment.