Skip to content

Commit 39d8eee

Browse files
authored
Sync typeshed (#5327)
In preparation for the release. This also fixes minor related errors in self-check.
1 parent 036b193 commit 39d8eee

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

mypy/dmypy_server.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ def daemonize(func: Callable[[], None], log_file: Optional[str] = None) -> int:
3939
subprocess killed by signal.
4040
"""
4141
# See https://stackoverflow.com/questions/473620/how-do-you-create-a-daemon-in-python
42+
if sys.platform == 'win32':
43+
raise ValueError('Mypy daemon is not supported on Windows yet')
4244
sys.stdout.flush()
4345
sys.stderr.flush()
4446
pid = os.fork()

mypy/test/testsamples.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def test_stdlibsamples(self) -> None:
4444
modules.append(f)
4545
if modules:
4646
# TODO: Remove need for --no-strict-optional
47-
run_mypy(['--no-strict-optional'] + modules)
47+
run_mypy(['--no-strict-optional', '--platform=linux'] + modules)
4848

4949

5050
def find_files(base: str, prefix: str = '', suffix: str = '') -> List[str]:

typeshed

Submodule typeshed updated 85 files

waiter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ def __init__(self, limit: int = 0, *, verbosity: int = 0, xfail: List[str] = [],
130130
self.current = {} # type: Dict[int, Tuple[int, LazySubprocess]]
131131
if limit == 0:
132132
try:
133-
sched_getaffinity = os.sched_getaffinity
133+
sched_getaffinity = os.sched_getaffinity # type: ignore
134134
except AttributeError:
135135
# no support for affinity on OSX/Windows
136136
limit = cpu_count()

0 commit comments

Comments
 (0)