Shantanu

Results 383 comments of Shantanu

Users need to install the dependencies of stubs. This is not about typeshed CI. If stub for `great_numpy_tools` looks like: ``` def make_my_array_good(x: np.ndarray) -> whatever: ... ``` then users...

Great, looks like we're seemingly at consensus on Akuli's suggestion. I've implemented all of this locally for stub_uploader, will open a PR once https://github.com/typeshed-internal/stub_uploader/pull/59 is merged (which should be uncontroversial...

PR at https://github.com/typeshed-internal/stub_uploader/pull/61

Use overload + Literal, should work for most cases. (Otherwise your fallback is the same as everyone else's, use Any)

Similar to NiklasRosenstein's example, there's also a case in https://github.com/python/mypy/issues/12299#issue-1160721934 where we don't hide errors in third party modules that come from fastparse. (This was fine when these were hard...

Technically unrelated to this, see the pinned issue here #13627

This is a mostly unavoidable side effect of https://github.com/python/mypy/pull/11143, which changed mypy to have full `sys.path` support. #11143 had several bugs, including to do with cwd. For instance, it meant...

Thanks, I needed to disable the "sqlmypy" plugin in order to be able to repro. When running with uncompiled mypy (using latest master), I get the following stacktrace: ``` coaster/views/classview.py:193:...

You can avoid the crash by doing: ``` diff --git a/coaster/views/classview.py b/coaster/views/classview.py index 34e7e47..13e4e5c 100644 --- a/coaster/views/classview.py +++ b/coaster/views/classview.py @@ -183,6 +183,7 @@ class ViewHandler( # pylint: disable=too-many-instance-attributes self.requires_roles =...