From e537705e3d30ea07642405fe72c6a152949d4705 Mon Sep 17 00:00:00 2001 From: hauntsaninja <> Date: Fri, 10 Dec 2021 12:37:32 -0800 Subject: [PATCH 1/2] Remove assumption of case insensitivity Originally added in #10093 Fixes #11690, fixes #10661, fixes #10822 --- mypy/fscache.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/mypy/fscache.py b/mypy/fscache.py index c77b941c551ca..fb651326fe49e 100644 --- a/mypy/fscache.py +++ b/mypy/fscache.py @@ -202,9 +202,6 @@ def isfile_case(self, path: str, prefix: str) -> bool: The caller must ensure that prefix is a valid file system prefix of path. """ - if sys.platform == "linux": - # Assume that the file system on Linux is case sensitive - return self.isfile(path) if not self.isfile(path): # Fast path return False From 7a5337f5955f0dd3af97e1159f59346846106e65 Mon Sep 17 00:00:00 2001 From: hauntsaninja <> Date: Fri, 10 Dec 2021 13:11:41 -0800 Subject: [PATCH 2/2] lint --- mypy/fscache.py | 1 - 1 file changed, 1 deletion(-) diff --git a/mypy/fscache.py b/mypy/fscache.py index fb651326fe49e..ea71577b5f86d 100644 --- a/mypy/fscache.py +++ b/mypy/fscache.py @@ -30,7 +30,6 @@ import os import stat -import sys from typing import Dict, List, Set from mypy.util import hash_digest from mypy_extensions import mypyc_attr