| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
I wasn't thrilled about the 200+ failed tests, so I added list to lib-stub's builtins. I guess I'm about to find out if that's acceptable :-) |
Sorry, something went wrong.
| m.x # E: "object" has no attribute "x" | ||
| [file m.py] | ||
|
|
||
| [case testListMissingFromStubs] |
There was a problem hiding this comment.
Why did you delete this test? The behavior it's testing (error messages tailored to bad fixtures) seems useful.
Sorry, something went wrong.
There was a problem hiding this comment.
The quickest way to resolve the many test failures was to add list to the builtin stubs (I expect this might be controversial), which of course broke this test.
We have tests for tailored error messages for several other specific fixtures, so I figured this wouldn't be the worst test to remove, especially since I anticipate pushback on adding list to builtin stubs.
Sorry, something went wrong.
This gives us better errors for fixtures stuff and helps with Python 2
|
@JelleZijlstra what else needs to be done here? This fixes the first mypy bug many users will run into. |
Sorry, something went wrong.
|
The build seems to be stuck. If you can make this up to date with master so that there's a passing build, I'm happy to review this. |
Sorry, something went wrong.
|
Unstuck Travis, and all is green! |
Sorry, something went wrong.
|
@JukkaL @hauntsaninja looks like we were really close on this! Any chance we revisit and get it merged? 🤞 |
Sorry, something went wrong.
Yes, technically it returns whatever its first argument is if it isn't a list. Doing this because python/mypy#9454 (comment)
|
Python 3.5 CI failed with some SSL error (as seems to happen half the time now). I restarted it. |
Sorry, something went wrong.
Yes, technically it returns whatever its first argument is if it isn't a list. Doing this because python/mypy#9454 (comment)
|
Diff from mypy_primer, showing the effect of this PR on open source code: porcupine (https://github.com/Akuli/porcupine.git)
+ porcupine/images/__init__.py:9: error: Name "__path__" already defined (possibly by an import) [no-redef]
+ porcupine/plugins/__init__.py:13: error: Name "__path__" already defined (possibly by an import) [no-redef]
poetry (https://github.com/python-poetry/poetry.git)
- poetry/__init__.py:4: error: Cannot determine type of "__path__"
+ poetry/mixology/failure.py:144: error: Item "RootCause" of "Union[RootCause, NoVersionsCause, DependencyCause, ConflictCause, PythonCause, PlatformCause, PackageNotFoundCause]" has no attribute "conflict"
edgedb (https://github.com/edgedb/edgedb.git)
+ edb/schema/std.py:41: error: unused "type: ignore" comment
+ edb/schema/std.py:42: error: unused "type: ignore" comment
+ edb/schema/std.py:43: error: unused "type: ignore" comment
+ edb/schema/std.py:44: error: unused "type: ignore" comment
|
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Resolves #1422
I see there's a small graveyard of attempted fixes to this issue. Hopefully the same fate does not befall this PR.