Skip to content

Crash with "AssertionError: Should never get here in normal mode" #5192

Closed

Description

@pradyunsg

🐛 Python 3.6.5, mypy 0.610

Reproducible on https://github.com/pypa/pip master. Running tox -e mypy on that repo a second time or later, results in an error the second time.

mypy configuration:

[mypy]
follow_imports = silent
ignore_missing_imports = True
strict_optional = False

[mypy-pip/_vendor/*]
follow_imports = skip
ignore_errors = True

mypy output/traceback:

mypy runtests: commands[0] | mypy src/pip
Traceback (most recent call last):
  File "/Users/pradyunsg/Projects/pip/.tox/mypy/bin/mypy", line 11, in <module>
    sys.exit(console_entry())
  File "/Users/pradyunsg/Projects/pip/.tox/mypy/lib/python3.6/site-packages/mypy/__main__.py", line 7, in console_entry
    main(None)
  File "/Users/pradyunsg/Projects/pip/.tox/mypy/lib/python3.6/site-packages/mypy/main.py", line 91, in main
    res = type_check_only(sources, bin_dir, options, flush_errors, fscache)  # noqa
  File "/Users/pradyunsg/Projects/pip/.tox/mypy/lib/python3.6/site-packages/mypy/main.py", line 148, in type_check_only
    fscache=fscache)
  File "/Users/pradyunsg/Projects/pip/.tox/mypy/lib/python3.6/site-packages/mypy/build.py", line 185, in build
    flush_errors, fscache)
  File "/Users/pradyunsg/Projects/pip/.tox/mypy/lib/python3.6/site-packages/mypy/build.py", line 285, in _build
    graph = dispatch(sources, manager)
  File "/Users/pradyunsg/Projects/pip/.tox/mypy/lib/python3.6/site-packages/mypy/build.py", line 2398, in dispatch
    process_graph(graph, manager)
  File "/Users/pradyunsg/Projects/pip/.tox/mypy/lib/python3.6/site-packages/mypy/build.py", line 2684, in process_graph
    process_fresh_modules(graph, prev_scc, manager)
  File "/Users/pradyunsg/Projects/pip/.tox/mypy/lib/python3.6/site-packages/mypy/build.py", line 2770, in process_fresh_modules
    graph[id].fix_cross_refs()
  File "/Users/pradyunsg/Projects/pip/.tox/mypy/lib/python3.6/site-packages/mypy/build.py", line 1853, in fix_cross_refs
    self.options.use_fine_grained_cache)
  File "/Users/pradyunsg/Projects/pip/.tox/mypy/lib/python3.6/site-packages/mypy/fixup.py", line 25, in fixup_module
    node_fixer.visit_symbol_table(tree.names)
  File "/Users/pradyunsg/Projects/pip/.tox/mypy/lib/python3.6/site-packages/mypy/fixup.py", line 95, in visit_symbol_table
    self.visit_type_info(value.node)
  File "/Users/pradyunsg/Projects/pip/.tox/mypy/lib/python3.6/site-packages/mypy/fixup.py", line 48, in visit_type_info
    base.accept(self.type_fixer)
  File "/Users/pradyunsg/Projects/pip/.tox/mypy/lib/python3.6/site-packages/mypy/types.py", line 512, in accept
    return visitor.visit_instance(self)
  File "/Users/pradyunsg/Projects/pip/.tox/mypy/lib/python3.6/site-packages/mypy/fixup.py", line 156, in visit_instance
    inst.type = lookup_qualified_typeinfo(self.modules, type_ref, self.quick_and_dirty)
  File "/Users/pradyunsg/Projects/pip/.tox/mypy/lib/python3.6/site-packages/mypy/fixup.py", line 246, in lookup_qualified_typeinfo
    assert quick_and_dirty, "Should never get here in normal mode"
AssertionError: Should never get here in normal mode
ERROR: InvocationError for command '/Users/pradyunsg/Projects/pip/.tox/mypy/bin/mypy src/pip' (exited with code 1)

Activity

  1. pradyunsg commented on Jun 11, 2018

    @pradyunsg
    MemberAuthor

    Following a similar, older report (#3852), attached is a zip of the .mypy_cache: mypy_cache.zip

  2. emmatyping commented on Jun 11, 2018

    @emmatyping
    Member

    Confirmed on mypy master.

  3. pradyunsg commented on Jun 11, 2018

    @pradyunsg
    MemberAuthor

    Reproduced on master as:

    $ # in a clean venv, activated
    $ python3 -m pip install -U git+git://github.com/python/mypy.git 
    [...]
    $ git clone https://github.com/pypa/pip.git --depth=1
    [...]
    $ cd pip
    $ git fetch origin 13a749de24448d553b73abbb119d6a9e42531089
    $ git checkout 13a749de24448d553b73abbb119d6a9e42531089
    $ mypy src
    [...]
    $ mypy src
    Traceback (most recent call last):
      File "/tmp/mypy-venv/bin/mypy", line 11, in <module>
        sys.exit(console_entry())
      File "/tmp/mypy-venv/lib/python3.6/site-packages/mypy/__main__.py", line 7, in console_entry
        main(None)
      File "/tmp/mypy-venv/lib/python3.6/site-packages/mypy/main.py", line 91, in main
        res = type_check_only(sources, bin_dir, options, flush_errors, fscache)  # noqa
      File "/tmp/mypy-venv/lib/python3.6/site-packages/mypy/main.py", line 148, in type_check_only
        fscache=fscache)
      File "/tmp/mypy-venv/lib/python3.6/site-packages/mypy/build.py", line 181, in build
        flush_errors, fscache)
      File "/tmp/mypy-venv/lib/python3.6/site-packages/mypy/build.py", line 286, in _build
        graph = dispatch(sources, manager)
      File "/tmp/mypy-venv/lib/python3.6/site-packages/mypy/build.py", line 2440, in dispatch
        process_graph(graph, manager)
      File "/tmp/mypy-venv/lib/python3.6/site-packages/mypy/build.py", line 2726, in process_graph
        process_fresh_modules(graph, prev_scc, manager)
      File "/tmp/mypy-venv/lib/python3.6/site-packages/mypy/build.py", line 2812, in process_fresh_modules
        graph[id].fix_cross_refs()
      File "/tmp/mypy-venv/lib/python3.6/site-packages/mypy/build.py", line 1895, in fix_cross_refs
        self.options.use_fine_grained_cache)
      File "/tmp/mypy-venv/lib/python3.6/site-packages/mypy/fixup.py", line 25, in fixup_module
        node_fixer.visit_symbol_table(tree.names)
      File "/tmp/mypy-venv/lib/python3.6/site-packages/mypy/fixup.py", line 95, in visit_symbol_table
        self.visit_type_info(value.node)
      File "/tmp/mypy-venv/lib/python3.6/site-packages/mypy/fixup.py", line 48, in visit_type_info
        base.accept(self.type_fixer)
      File "/tmp/mypy-venv/lib/python3.6/site-packages/mypy/types.py", line 513, in accept
        return visitor.visit_instance(self)
      File "/tmp/mypy-venv/lib/python3.6/site-packages/mypy/fixup.py", line 156, in visit_instance
        inst.type = lookup_qualified_typeinfo(self.modules, type_ref, self.quick_and_dirty)
      File "/tmp/mypy-venv/lib/python3.6/site-packages/mypy/fixup.py", line 246, in lookup_qualified_typeinfo
        assert quick_and_dirty, "Should never get here in normal mode"
    AssertionError: Should never get here in normal mode
  4. pradyunsg commented on Jun 11, 2018

    @pradyunsg
    MemberAuthor

    Removing .mypy_cache after the first run, prevents this from occurring.

  5. ilevkivskyi commented on Jun 11, 2018

    @ilevkivskyi
    Member

    I really hoped we will not see this ever again :-( Just to clarify, is this a regression in 0.610 (i.e. does it work with mypy 0.600)?

    Also, could you please try to play with mypy config to see what exactly causes a breakage? Ideally it would be great to have a minimalistic repro, but I understand this may be hard to find.

  6. pradyunsg commented on Jun 11, 2018

    @pradyunsg
    MemberAuthor

    No crash with mypy 0.600.

    Also, it no longer occurs on pip's master; I added a missing stub for a vendored library, which seems to have fixed this. It does still occur on pypa/pip@13a749d. Updated the reproduction case above to checkout to that.

  7. pradyunsg commented on Jun 11, 2018

    @pradyunsg
    MemberAuthor

    Is there any way to know which file mypy is processing when it crashes? I have a gut feeling it's going to be appdirs.py in src/pip/_vendor/. :P

    Minimal reproduction mypy config, with the same source tree.

    [mypy-pip/_vendor/*]
    ignore_errors = True
  8. ilevkivskyi commented on Jun 11, 2018

    @ilevkivskyi
    Member

    Is there any way to know which file mypy is processing when it crashes?

    You can run mypy with -v (There is also -vv but it is extremely verbose).

  9. pradyunsg commented on Jun 11, 2018

    @pradyunsg
    MemberAuthor
    • mypy 0.600 also crashes with the minimal configuration but not with the configuration in OP.
    • Both 0.600 and 0.610 do not crash with defaults -- i.e. an empty configuration file.

    The crash still occurs on mypy 0.600 and 0.610 with the source tree reduced to (the minimal configuration):

    .
    ├── setup.cfg
    └── src
        └── pip
            ├── __init__.py
            ├── _internal
            │   ├── __init__.py
            │   └── configuration.py
            └── _vendor
                ├── __init__.py
                └── urllib3
                    ├── __init__.py
                    └── util
                        ├── __init__.py
                        └── url.py
    
    6 directories, 9 files
    

    All the __init__.py files are empty. Moving url.py to _vendor and deleting the urllib3 folder (which now only has empty __init__.py) files, still crashes. Moving it out of _vendor resolves the crash. :/

  10. pradyunsg commented on Jun 11, 2018

    @pradyunsg
    MemberAuthor

    Here's the smallest reproduction case I can come up with (crashes both 0.600 and 0.610):

    tree .

    .
    ├── setup.cfg
    └── src
        ├── ignored
        │   ├── __init__.py
        │   └── two.py
        └── one.py
    
    2 directories, 4 files
    

    __init__.py is an empty file.

    one.py

    import logging
    
    def func(value):
        # type: (Any) -> None
        pass

    two.py

    from collections import namedtuple
    
    
    class MyClass(namedtuple('MyClass', undefined_variable)):
        pass

    setup.cfg

    [mypy-ignored/*]
    ignore_errors = True
    

    Things that prevent the crash:

    • Adding from typing import Any to one.py
    • Removing import logging from one.py
    • Removing # type comment from one.py
    • Changing undefined_variable in two.py to [] or ['a'] (but not when it's [1])

    Is it just me or does this look very weird? ._.

  11. pradyunsg commented on Jun 11, 2018

    @pradyunsg
    MemberAuthor

    Output of mypy src, with no .mypy_cache:

    src/one.py:4: error: Name 'Any' is not defined
    
    Click to see output of mypy src -vv, run immediately after:
    LOG:  Mypy version 0.610
    TRACE: Looking for ignored at .mypy_cache/3.6/ignored/__init__.meta.json
    TRACE: Meta ignored {"child_modules": ["ignored.two"], "data_mtime": 1528718789, "dep_lines": [1], "dep_prios": [5], "dependencies": ["builtins"], "deps_mtime": null, "hash": "d41d8cd98f00b204e9800998ecf8427e", "id": "ignored", "ignore_all": false, "interface_hash": "7c459e47627738d7f603c7e1e39bf244", "mtime": 1528717643, "options": {"always_false": [], "always_true": [], "check_untyped_defs": false, "disallow_any_decorated": false, "disallow_any_explicit": false, "disallow_any_expr": false, "disallow_any_generics": false, "disallow_any_unimported": false, "disallow_subclassing_any":false, "disallow_untyped_calls": false, "disallow_untyped_decorators": false, "disallow_untyped_defs": false, "follow_imports": "normal", "follow_imports_for_stubs": false, "ignore_errors": true, "ignore_missing_imports": false, "local_partial_types": false, "no_implicit_optional": false, "platform": "darwin", "quick_and_dirty": false, "show_none_errors": true, "strict_boolean": false, "strict_optional": true, "strict_optional_whitelist": null, "warn_no_return": true, "warn_return_any": false, "warn_unused_ignores": false}, "path": "/Users/pradyunsg/.venvwrap/venvs/tmp-6d13a16911bf03c/pip/src/ignored/__init__.py", "size": 0, "suppressed": [], "version_id": "0.610"}
    LOG:  Metadata fresh for ignored: file /Users/pradyunsg/.venvwrap/venvs/tmp-6d13a16911bf03c/pip/src/ignored/__init__.py
    TRACE: Looking for ignored.two at .mypy_cache/3.6/ignored/two.meta.json
    TRACE: Meta ignored.two {"child_modules": [], "data_mtime": 1528718789, "dep_lines": [1, 1], "dep_prios": [5, 5], "dependencies": ["collections", "builtins"], "deps_mtime": null, "hash": "6877b9cb41eae9c4a02f44d63fa7df9c", "id": "ignored.two", "ignore_all": false, "interface_hash": "4243b6502fd55df1582c7fb7bc51d172", "mtime": 1528718254, "options": {"always_false": [], "always_true": [], "check_untyped_defs": false, "disallow_any_decorated": false, "disallow_any_explicit": false, "disallow_any_expr": false, "disallow_any_generics": false, "disallow_any_unimported": false, "disallow_subclassing_any": false, "disallow_untyped_calls": false, "disallow_untyped_decorators": false, "disallow_untyped_defs": false, "follow_imports": "normal", "follow_imports_for_stubs": false, "ignore_errors": true, "ignore_missing_imports": false, "local_partial_types": false, "no_implicit_optional": false, "platform": "darwin", "quick_and_dirty": false, "show_none_errors": true, "strict_boolean": false, "strict_optional": true, "strict_optional_whitelist": null, "warn_no_return": true, "warn_return_any": false, "warn_unused_ignores": false}, "path": "/Users/pradyunsg/.venvwrap/venvs/tmp-6d13a16911bf03c/pip/src/ignored/two.py", "size": 89, "suppressed": [], "version_id": "0.610"}
    LOG:  Metadata fresh for ignored.two: file /Users/pradyunsg/.venvwrap/venvs/tmp-6d13a16911bf03c/pip/src/ignored/two.py
    TRACE: Looking for one at .mypy_cache/3.6/one.meta.json
    LOG:  Could not load cache for one: .mypy_cache/3.6/one.meta.json
    LOG:  Metadata not found for one
    LOG:  Parsing src/one.py (one)
    TRACE: Looking for builtins at .mypy_cache/3.6/builtins.meta.json
    TRACE: Meta builtins {"child_modules": [], "data_mtime": 1528718789, "dep_lines": [3, 10, 11, 12], "dep_prios": [5, 5, 5, 10], "dependencies": ["typing", "abc", "types", "sys"], "deps_mtime": null, "hash": "f02f7d2923d1d3176e5c6e9ca0e1bb50", "id": "builtins", "ignore_all": false, "interface_hash": "b7db4ebf9af84ab0add2988864445467", "mtime": 1528718778, "options": {"always_false": [], "always_true": [], "check_untyped_defs": false, "disallow_any_decorated": false, "disallow_any_explicit": false, "disallow_any_expr": false, "disallow_any_generics": false, "disallow_any_unimported": false, "disallow_subclassing_any": false, "disallow_untyped_calls": false, "disallow_untyped_decorators": false, "disallow_untyped_defs": false, "follow_imports": "normal", "follow_imports_for_stubs": false, "ignore_errors": false, "ignore_missing_imports": false, "local_partial_types": false, "no_implicit_optional": false, "platform": "darwin", "quick_and_dirty": false, "show_none_errors": true, "strict_boolean": false, "strict_optional": true, "strict_optional_whitelist": null, "warn_no_return": true, "warn_return_any": false, "warn_unused_ignores": false}, "path": "/Users/pradyunsg/.venvwrap/venvs/tmp-6d13a16911bf03c/lib/mypy/typeshed/stdlib/3/builtins.pyi", "size": 46034, "suppressed": [], "version_id": "0.610"}
    LOG:  Metadata fresh for builtins: file /Users/pradyunsg/.venvwrap/venvs/tmp-6d13a16911bf03c/lib/mypy/typeshed/stdlib/3/builtins.pyi
    TRACE: Looking for collections at .mypy_cache/3.6/collections/__init__.meta.json
    TRACE: Meta collections {"child_modules": ["collections.abc"], "data_mtime": 1528718788, "dep_lines": [6, 7, 13, 1, 1], "dep_prios": [10, 5, 10, 5, 30], "dependencies": ["sys", "typing", "collections.abc", "builtins", "abc"], "deps_mtime": null, "hash": "6e8c017af4fb0134016c50d5e0abf59f", "id": "collections", "ignore_all": false, "interface_hash": "21ddf23b372701468d5056b4bec37eba", "mtime": 1528718778, "options": {"always_false": [], "always_true": [], "check_untyped_defs": false, "disallow_any_decorated": false, "disallow_any_explicit": false, "disallow_any_expr": false, "disallow_any_generics": false, "disallow_any_unimported": false, "disallow_subclassing_any": false, "disallow_untyped_calls": false, "disallow_untyped_decorators": false, "disallow_untyped_defs": false, "follow_imports": "normal", "follow_imports_for_stubs": false, "ignore_errors": false, "ignore_missing_imports": false, "local_partial_types": false, "no_implicit_optional": false, "platform": "darwin", "quick_and_dirty": false, "show_none_errors": true, "strict_boolean": false, "strict_optional": true, "strict_optional_whitelist": null, "warn_no_return": true, "warn_return_any": false, "warn_unused_ignores": false}, "path": "/Users/pradyunsg/.venvwrap/venvs/tmp-6d13a16911bf03c/lib/mypy/typeshed/stdlib/3/collections/__init__.pyi", "size": 15065, "suppressed": [], "version_id": "0.610"}
    LOG:  Metadata fresh for collections: file /Users/pradyunsg/.venvwrap/venvs/tmp-6d13a16911bf03c/lib/mypy/typeshed/stdlib/3/collections/__init__.pyi
    TRACE: Looking for logging at .mypy_cache/3.6/logging/__init__.meta.json
    TRACE: Meta logging {"child_modules": [], "data_mtime": 1528718789, "dep_lines": [3, 7, 8, 9, 10, 11, 1, 1], "dep_prios": [5, 5, 5, 5, 10, 10, 5, 30], "dependencies": ["typing", "string", "time", "types", "sys", "threading", "builtins", "abc"], "deps_mtime": null, "hash": "eb7f0787091a8dfef1551159ceb92604", "id": "logging", "ignore_all": false, "interface_hash": "d00277b5b2db8afcf099f93c96335302", "mtime": 1528718778, "options": {"always_false": [], "always_true": [], "check_untyped_defs": false, "disallow_any_decorated": false, "disallow_any_explicit": false, "disallow_any_expr": false, "disallow_any_generics": false, "disallow_any_unimported": false, "disallow_subclassing_any": false, "disallow_untyped_calls": false, "disallow_untyped_decorators": false, "disallow_untyped_defs": false, "follow_imports": "normal", "follow_imports_for_stubs": false, "ignore_errors": false, "ignore_missing_imports": false, "local_partial_types": false, "no_implicit_optional": false, "platform": "darwin", "quick_and_dirty": false, "show_none_errors": true, "strict_boolean": false, "strict_optional": true, "strict_optional_whitelist": null, "warn_no_return": true, "warn_return_any":false, "warn_unused_ignores": false}, "path": "/Users/pradyunsg/.venvwrap/venvs/tmp-6d13a16911bf03c/lib/mypy/typeshed/stdlib/2and3/logging/__init__.pyi", "size": 18609, "suppressed": [], "version_id": "0.610"}
    LOG:  Metadata fresh for logging: file /Users/pradyunsg/.venvwrap/venvs/tmp-6d13a16911bf03c/lib/mypy/typeshed/stdlib/2and3/logging/__init__.pyi
    TRACE: Looking for typing at .mypy_cache/3.6/typing.meta.json
    TRACE: Meta typing {"child_modules": [], "data_mtime": 1528718788, "dep_lines": [3, 4, 5, 6, 1], "dep_prios": [10, 5, 5, 10, 5], "dependencies": ["sys", "abc", "types", "collections", "builtins"],"deps_mtime": null, "hash": "b25d91dc542923260f50d280df060e85", "id": "typing", "ignore_all": false, "interface_hash": "af12f09337aadfd6519a6dd4acd8572c", "mtime": 1528718778, "options": {"always_false": [], "always_true": [], "check_untyped_defs": false, "disallow_any_decorated": false, "disallow_any_explicit": false, "disallow_any_expr": false, "disallow_any_generics": false, "disallow_any_unimported": false, "disallow_subclassing_any": false, "disallow_untyped_calls": false, "disallow_untyped_decorators": false, "disallow_untyped_defs": false, "follow_imports": "normal", "follow_imports_for_stubs": false, "ignore_errors": false, "ignore_missing_imports": false, "local_partial_types": false, "no_implicit_optional": false, "platform": "darwin", "quick_and_dirty": false, "show_none_errors": true, "strict_boolean": false, "strict_optional": true, "strict_optional_whitelist": null, "warn_no_return": true, "warn_return_any": false, "warn_unused_ignores": false}, "path": "/Users/pradyunsg/.venvwrap/venvs/tmp-6d13a16911bf03c/lib/mypy/typeshed/stdlib/3/typing.pyi", "size": 18942, "suppressed": [], "version_id": "0.610"}
    LOG:  Metadata fresh for typing: file /Users/pradyunsg/.venvwrap/venvs/tmp-6d13a16911bf03c/lib/mypy/typeshed/stdlib/3/typing.pyi
    TRACE: Looking for abc at .mypy_cache/3.6/abc.meta.json
    TRACE: Meta abc {"child_modules": [], "data_mtime": 1528718788, "dep_lines": [1, 2, 1], "dep_prios": [5, 10, 5], "dependencies": ["typing", "sys", "builtins"], "deps_mtime": null, "hash": "b0cc9513c1f9ba454241898c7a660486", "id": "abc", "ignore_all": false, "interface_hash": "a66f97e11b354a43a7ddd96b5345321a", "mtime": 1528718778, "options": {"always_false": [], "always_true": [], "check_untyped_defs": false, "disallow_any_decorated": false, "disallow_any_explicit": false, "disallow_any_expr": false, "disallow_any_generics": false, "disallow_any_unimported": false, "disallow_subclassing_any": false, "disallow_untyped_calls": false, "disallow_untyped_decorators": false, "disallow_untyped_defs": false, "follow_imports": "normal", "follow_imports_for_stubs": false, "ignore_errors": false, "ignore_missing_imports": false, "local_partial_types": false, "no_implicit_optional": false, "platform": "darwin", "quick_and_dirty": false, "show_none_errors": true, "strict_boolean": false, "strict_optional": true, "strict_optional_whitelist": null, "warn_no_return": true, "warn_return_any": false, "warn_unused_ignores": false}, "path": "/Users/pradyunsg/.venvwrap/venvs/tmp-6d13a16911bf03c/lib/mypy/typeshed/stdlib/3/abc.pyi", "size": 793, "suppressed": [], "version_id": "0.610"}
    LOG:  Metadata fresh for abc: file /Users/pradyunsg/.venvwrap/venvs/tmp-6d13a16911bf03c/lib/mypy/typeshed/stdlib/3/abc.pyi
    TRACE: Looking for types at .mypy_cache/3.6/types.meta.json
    TRACE: Meta types {"child_modules": [], "data_mtime": 1528718788, "dep_lines": [6, 7, 14, 1, 1], "dep_prios": [10, 5, 5, 5, 30], "dependencies": ["sys", "typing", "_importlib_modulespec", "builtins", "abc"], "deps_mtime": null, "hash": "f41f7744ad8e6c4d4c3c55507da811a4", "id": "types", "ignore_all": false, "interface_hash": "07318e1f49cc8b6149fa523d80222049", "mtime": 1528718778, "options":{"always_false": [], "always_true": [], "check_untyped_defs": false, "disallow_any_decorated": false, "disallow_any_explicit": false, "disallow_any_expr": false, "disallow_any_generics": false, "disallow_any_unimported": false, "disallow_subclassing_any": false, "disallow_untyped_calls": false, "disallow_untyped_decorators": false, "disallow_untyped_defs": false, "follow_imports": "normal","follow_imports_for_stubs": false, "ignore_errors": false, "ignore_missing_imports": false, "local_partial_types": false, "no_implicit_optional": false, "platform": "darwin", "quick_and_dirty": false, "show_none_errors": true, "strict_boolean": false, "strict_optional": true, "strict_optional_whitelist": null, "warn_no_return": true, "warn_return_any": false, "warn_unused_ignores": false}, "path": "/Users/pradyunsg/.venvwrap/venvs/tmp-6d13a16911bf03c/lib/mypy/typeshed/stdlib/3/types.pyi", "size": 7689, "suppressed": [], "version_id": "0.610"}
    LOG:  Metadata fresh for types: file /Users/pradyunsg/.venvwrap/venvs/tmp-6d13a16911bf03c/lib/mypy/typeshed/stdlib/3/types.pyi
    TRACE: Looking for sys at .mypy_cache/3.6/sys.meta.json
    TRACE: Meta sys {"child_modules": [], "data_mtime": 1528718788, "dep_lines": [6, 11, 14, 1, 1, 1, 1], "dep_prios": [5, 5, 5, 5, 30, 30, 30], "dependencies": ["typing", "types", "importlib.abc", "builtins", "_importlib_modulespec", "abc", "importlib"], "deps_mtime": null, "hash": "8db7a3ca4604a6fbd07a6e540c990dcc", "id": "sys", "ignore_all": false, "interface_hash": "dd1e0502e2ac7b1ff60d906e7e84806a", "mtime": 1528718778, "options": {"always_false": [], "always_true": [], "check_untyped_defs": false, "disallow_any_decorated": false, "disallow_any_explicit": false, "disallow_any_expr":false, "disallow_any_generics": false, "disallow_any_unimported": false, "disallow_subclassing_any": false, "disallow_untyped_calls": false, "disallow_untyped_decorators": false, "disallow_untyped_defs": false, "follow_imports": "normal", "follow_imports_for_stubs": false, "ignore_errors": false, "ignore_missing_imports": false, "local_partial_types": false, "no_implicit_optional": false, "platform": "darwin", "quick_and_dirty": false, "show_none_errors": true, "strict_boolean": false, "strict_optional": true, "strict_optional_whitelist": null, "warn_no_return": true, "warn_return_any": false, "warn_unused_ignores": false}, "path": "/Users/pradyunsg/.venvwrap/venvs/tmp-6d13a16911bf03c/lib/mypy/typeshed/stdlib/3/sys.pyi", "size": 5258, "suppressed": [], "version_id": "0.610"}
    LOG:  Metadata fresh for sys: file /Users/pradyunsg/.venvwrap/venvs/tmp-6d13a16911bf03c/lib/mypy/typeshed/stdlib/3/sys.pyi
    TRACE: Looking for collections.abc at .mypy_cache/3.6/collections/abc.meta.json
    TRACE: Meta collections.abc {"child_modules": [], "data_mtime": 1528718788, "dep_lines": [4, 7, 1, 1, 1], "dep_prios": [10, 5, 5, 30, 30], "dependencies": ["sys", "collections", "builtins", "abc","typing"], "deps_mtime": null, "hash": "af02724cb6b8eac17e9c71e595dc622b", "id": "collections.abc", "ignore_all": false, "interface_hash": "7904542c04a7809d3027ae52e3b13274", "mtime": 1528718778, "options": {"always_false": [], "always_true": [], "check_untyped_defs": false, "disallow_any_decorated": false, "disallow_any_explicit": false, "disallow_any_expr": false, "disallow_any_generics":false, "disallow_any_unimported": false, "disallow_subclassing_any": false, "disallow_untyped_calls": false, "disallow_untyped_decorators": false, "disallow_untyped_defs": false, "follow_imports":"normal", "follow_imports_for_stubs": false, "ignore_errors": false, "ignore_missing_imports": false, "local_partial_types": false, "no_implicit_optional": false, "platform": "darwin", "quick_and_dirty": false, "show_none_errors": true, "strict_boolean": false, "strict_optional": true, "strict_optional_whitelist": null, "warn_no_return": true, "warn_return_any": false, "warn_unused_ignores": false}, "path": "/Users/pradyunsg/.venvwrap/venvs/tmp-6d13a16911bf03c/lib/mypy/typeshed/stdlib/3/collections/abc.pyi", "size": 1130, "suppressed": [], "version_id": "0.610"}
    LOG:  Metadata fresh for collections.abc: file /Users/pradyunsg/.venvwrap/venvs/tmp-6d13a16911bf03c/lib/mypy/typeshed/stdlib/3/collections/abc.pyi
    TRACE: Looking for string at .mypy_cache/3.6/string.meta.json
    TRACE: Meta string {"child_modules": [], "data_mtime": 1528718789, "dep_lines": [5, 1, 1], "dep_prios": [5, 5, 30], "dependencies": ["typing", "builtins", "abc"], "deps_mtime": null, "hash": "8c133962915479b7b3d537abbd00ccf4", "id": "string", "ignore_all": false, "interface_hash": "7ba37dbcf6f13d053878a8776c045821", "mtime": 1528718778, "options": {"always_false": [], "always_true": [], "check_untyped_defs": false, "disallow_any_decorated": false, "disallow_any_explicit": false, "disallow_any_expr": false, "disallow_any_generics": false, "disallow_any_unimported": false, "disallow_subclassing_any": false, "disallow_untyped_calls": false, "disallow_untyped_decorators": false, "disallow_untyped_defs": false, "follow_imports": "normal", "follow_imports_for_stubs": false, "ignore_errors": false, "ignore_missing_imports": false, "local_partial_types": false, "no_implicit_optional": false, "platform": "darwin", "quick_and_dirty": false, "show_none_errors": true, "strict_boolean": false, "strict_optional": true, "strict_optional_whitelist": null, "warn_no_return": true, "warn_return_any": false, "warn_unused_ignores": false}, "path": "/Users/pradyunsg/.venvwrap/venvs/tmp-6d13a16911bf03c/lib/mypy/typeshed/stdlib/3/string.pyi", "size": 1771, "suppressed": [], "version_id": "0.610"}
    LOG:  Metadata fresh for string: file /Users/pradyunsg/.venvwrap/venvs/tmp-6d13a16911bf03c/lib/mypy/typeshed/stdlib/3/string.pyi
    TRACE: Looking for time at .mypy_cache/3.6/time.meta.json
    TRACE: Meta time {"child_modules": [], "data_mtime": 1528718789, "dep_lines": [4, 5, 7, 1, 1], "dep_prios": [10, 5, 5, 5, 30], "dependencies": ["sys", "typing", "types", "builtins", "abc"], "deps_mtime": null, "hash": "d0848c9c98081f61adce6cdcd1ea12f5", "id": "time", "ignore_all": false, "interface_hash": "83d2497dd833c3d6a57358de1b7487cd", "mtime": 1528718778, "options": {"always_false": [], "always_true": [], "check_untyped_defs": false, "disallow_any_decorated": false, "disallow_any_explicit": false, "disallow_any_expr": false, "disallow_any_generics": false, "disallow_any_unimported": false, "disallow_subclassing_any": false, "disallow_untyped_calls": false, "disallow_untyped_decorators": false, "disallow_untyped_defs": false, "follow_imports": "normal", "follow_imports_for_stubs": false, "ignore_errors": false, "ignore_missing_imports": false, "local_partial_types": false, "no_implicit_optional": false, "platform": "darwin", "quick_and_dirty": false, "show_none_errors": true, "strict_boolean": false, "strict_optional": true, "strict_optional_whitelist": null, "warn_no_return": true, "warn_return_any": false, "warn_unused_ignores": false}, "path": "/Users/pradyunsg/.venvwrap/venvs/tmp-6d13a16911bf03c/lib/mypy/typeshed/stdlib/2and3/time.pyi", "size": 3866, "suppressed": [], "version_id": "0.610"}
    LOG:  Metadata fresh for time: file /Users/pradyunsg/.venvwrap/venvs/tmp-6d13a16911bf03c/lib/mypy/typeshed/stdlib/2and3/time.pyi
    TRACE: Looking for threading at .mypy_cache/3.6/threading.meta.json
    TRACE: Meta threading {"child_modules": [], "data_mtime": 1528718789, "dep_lines": [3, 7, 8, 1, 1], "dep_prios": [5, 5, 10, 5, 30], "dependencies": ["typing", "types", "sys", "builtins", "abc"], "deps_mtime": null, "hash": "8011ad17f4382e26f7fb479cd3be50d6", "id": "threading", "ignore_all": false, "interface_hash": "f62d103c8099f7eb7f9b2a0d64ed2d4e", "mtime": 1528718778, "options": {"always_false": [], "always_true": [], "check_untyped_defs": false, "disallow_any_decorated": false, "disallow_any_explicit": false, "disallow_any_expr": false, "disallow_any_generics": false, "disallow_any_unimported": false, "disallow_subclassing_any": false, "disallow_untyped_calls": false, "disallow_untyped_decorators": false, "disallow_untyped_defs": false, "follow_imports": "normal", "follow_imports_for_stubs": false, "ignore_errors": false, "ignore_missing_imports": false, "local_partial_types": false, "no_implicit_optional": false, "platform": "darwin", "quick_and_dirty": false, "show_none_errors": true, "strict_boolean": false, "strict_optional": true, "strict_optional_whitelist": null, "warn_no_return": true, "warn_return_any": false, "warn_unused_ignores": false}, "path": "/Users/pradyunsg/.venvwrap/venvs/tmp-6d13a16911bf03c/lib/mypy/typeshed/stdlib/2and3/threading.pyi", "size": 6492, "suppressed": [], "version_id": "0.610"}
    LOG:  Metadata fresh for threading: file /Users/pradyunsg/.venvwrap/venvs/tmp-6d13a16911bf03c/lib/mypy/typeshed/stdlib/2and3/threading.pyi
    TRACE: Looking for _importlib_modulespec at .mypy_cache/3.6/_importlib_modulespec.meta.json
    TRACE: Meta _importlib_modulespec {"child_modules": [], "data_mtime": 1528718788, "dep_lines": [8, 9, 10, 1], "dep_prios": [5, 10, 5, 5], "dependencies": ["abc", "sys", "typing", "builtins"], "deps_mtime": null, "hash": "09004ca85efa650685c23791c33ab159", "id": "_importlib_modulespec", "ignore_all": false, "interface_hash": "9531beb50a822ca3cb3231a8a7503907", "mtime": 1528718778, "options":{"always_false": [], "always_true": [], "check_untyped_defs": false, "disallow_any_decorated": false, "disallow_any_explicit": false, "disallow_any_expr": false, "disallow_any_generics": false, "disallow_any_unimported": false, "disallow_subclassing_any": false, "disallow_untyped_calls": false, "disallow_untyped_decorators": false, "disallow_untyped_defs": false, "follow_imports": "normal","follow_imports_for_stubs": false, "ignore_errors": false, "ignore_missing_imports": false, "local_partial_types": false, "no_implicit_optional": false, "platform": "darwin", "quick_and_dirty": false, "show_none_errors": true, "strict_boolean": false, "strict_optional": true, "strict_optional_whitelist": null, "warn_no_return": true, "warn_return_any": false, "warn_unused_ignores": false}, "path": "/Users/pradyunsg/.venvwrap/venvs/tmp-6d13a16911bf03c/lib/mypy/typeshed/stdlib/3/_importlib_modulespec.pyi", "size": 1813, "suppressed": [], "version_id": "0.610"}
    LOG:  Metadata fresh for _importlib_modulespec: file /Users/pradyunsg/.venvwrap/venvs/tmp-6d13a16911bf03c/lib/mypy/typeshed/stdlib/3/_importlib_modulespec.pyi
    TRACE: Looking for importlib.abc at .mypy_cache/3.6/importlib/abc.meta.json
    TRACE: Meta importlib.abc {"child_modules": [], "data_mtime": 1528718788, "dep_lines": [1, 2, 3, 4, 5, 9, 1], "dep_prios": [5, 10, 10, 10, 5, 5, 5], "dependencies": ["abc", "os", "sys", "types", "typing", "_importlib_modulespec", "builtins"], "deps_mtime": null, "hash": "c3ba6bb8a9d5ef313b854d375763c678", "id": "importlib.abc", "ignore_all": false, "interface_hash": "909da3c294d27e0dec967aa5a7587bbf", "mtime": 1528718778, "options": {"always_false": [], "always_true": [], "check_untyped_defs": false, "disallow_any_decorated": false, "disallow_any_explicit": false, "disallow_any_expr": false, "disallow_any_generics": false, "disallow_any_unimported": false, "disallow_subclassing_any": false, "disallow_untyped_calls": false, "disallow_untyped_decorators": false, "disallow_untyped_defs": false, "follow_imports": "normal", "follow_imports_for_stubs": false, "ignore_errors": false, "ignore_missing_imports": false, "local_partial_types": false, "no_implicit_optional": false, "platform": "darwin", "quick_and_dirty": false, "show_none_errors": true, "strict_boolean": false, "strict_optional": true, "strict_optional_whitelist": null, "warn_no_return": true, "warn_return_any": false, "warn_unused_ignores": false}, "path": "/Users/pradyunsg/.venvwrap/venvs/tmp-6d13a16911bf03c/lib/mypy/typeshed/stdlib/3/importlib/abc.pyi", "size": 4138, "suppressed": [], "version_id":"0.610"}
    LOG:  Metadata fresh for importlib.abc: file /Users/pradyunsg/.venvwrap/venvs/tmp-6d13a16911bf03c/lib/mypy/typeshed/stdlib/3/importlib/abc.pyi
    TRACE: Looking for importlib at .mypy_cache/3.6/importlib/__init__.meta.json
    TRACE: Meta importlib {"child_modules": ["importlib.util", "importlib.abc", "importlib.machinery"], "data_mtime": 1528718789, "dep_lines": [1, 2, 3, 4, 5, 1, 1], "dep_prios": [10, 5, 10, 10, 5, 5,30], "dependencies": ["importlib.util", "importlib.abc", "sys", "types", "typing", "builtins", "abc"], "deps_mtime": null, "hash": "0e34fbb5f56e88ae70ad7255827d7844", "id": "importlib", "ignore_all": false, "interface_hash": "c38b973ed98cbdf1abca0bb26e44fb98", "mtime": 1528718778, "options": {"always_false": [], "always_true": [], "check_untyped_defs": false, "disallow_any_decorated": false, "disallow_any_explicit": false, "disallow_any_expr": false, "disallow_any_generics": false, "disallow_any_unimported": false, "disallow_subclassing_any": false, "disallow_untyped_calls": false, "disallow_untyped_decorators": false, "disallow_untyped_defs": false, "follow_imports": "normal", "follow_imports_for_stubs": false, "ignore_errors": false, "ignore_missing_imports": false, "local_partial_types": false, "no_implicit_optional": false, "platform": "darwin", "quick_and_dirty": false, "show_none_errors": true, "strict_boolean": false, "strict_optional": true, "strict_optional_whitelist": null, "warn_no_return": true, "warn_return_any": false, "warn_unused_ignores": false}, "path": "/Users/pradyunsg/.venvwrap/venvs/tmp-6d13a16911bf03c/lib/mypy/typeshed/stdlib/3/importlib/__init__.pyi", "size": 709, "suppressed": [], "version_id": "0.610"}
    LOG:  Metadata fresh for importlib: file /Users/pradyunsg/.venvwrap/venvs/tmp-6d13a16911bf03c/lib/mypy/typeshed/stdlib/3/importlib/__init__.pyi
    TRACE: Looking for os at .mypy_cache/3.6/os/__init__.meta.json
    TRACE: Meta os {"child_modules": ["os.path"], "data_mtime": 1528718788, "dep_lines": [4, 5, 6, 12, 13, 14, 1], "dep_prios": [5, 10, 5, 5, 5, 10, 30], "dependencies": ["io", "sys", "typing", "builtins", "posix", "os.path", "abc"], "deps_mtime": null, "hash": "d75b0533ec7ad873fe690ec772c78e8d", "id": "os", "ignore_all": false, "interface_hash": "0e0b41ba6b6aaeebcdf80a98ec1e7e44", "mtime": 1528718778, "options": {"always_false": [], "always_true": [], "check_untyped_defs": false, "disallow_any_decorated": false, "disallow_any_explicit": false, "disallow_any_expr": false, "disallow_any_generics": false, "disallow_any_unimported": false, "disallow_subclassing_any": false, "disallow_untyped_calls": false, "disallow_untyped_decorators": false, "disallow_untyped_defs": false, "follow_imports": "normal", "follow_imports_for_stubs": false, "ignore_errors": false, "ignore_missing_imports": false, "local_partial_types": false, "no_implicit_optional": false, "platform": "darwin", "quick_and_dirty": false, "show_none_errors": true, "strict_boolean": false, "strict_optional": true, "strict_optional_whitelist": null, "warn_no_return": true, "warn_return_any": false, "warn_unused_ignores": false}, "path": "/Users/pradyunsg/.venvwrap/venvs/tmp-6d13a16911bf03c/lib/mypy/typeshed/stdlib/3/os/__init__.pyi", "size": 27132, "suppressed": [], "version_id": "0.610"}
    LOG:  Metadata fresh for os: file /Users/pradyunsg/.venvwrap/venvs/tmp-6d13a16911bf03c/lib/mypy/typeshed/stdlib/3/os/__init__.pyi
    TRACE: Looking for importlib.util at .mypy_cache/3.6/importlib/util.meta.json
    TRACE: Meta importlib.util {"child_modules": [], "data_mtime": 1528718789, "dep_lines": [1, 1, 2, 3, 4, 5, 1, 1], "dep_prios": [20, 10, 10, 10, 10, 5, 5, 30], "dependencies": ["importlib", "importlib.abc", "importlib.machinery", "sys", "types", "typing", "builtins", "abc"], "deps_mtime": null, "hash": "7efe513555a5ec9945506c489e397ed5", "id": "importlib.util", "ignore_all": false, "interface_hash": "16c9d0adf6db88c3af08d63b58c48eed", "mtime": 1528718778, "options": {"always_false": [], "always_true": [], "check_untyped_defs": false, "disallow_any_decorated": false, "disallow_any_explicit": false, "disallow_any_expr": false, "disallow_any_generics": false, "disallow_any_unimported": false, "disallow_subclassing_any": false, "disallow_untyped_calls": false, "disallow_untyped_decorators": false, "disallow_untyped_defs": false, "follow_imports": "normal", "follow_imports_for_stubs": false, "ignore_errors": false, "ignore_missing_imports": false, "local_partial_types": false, "no_implicit_optional": false, "platform": "darwin", "quick_and_dirty": false, "show_none_errors": true, "strict_boolean": false, "strict_optional": true, "strict_optional_whitelist": null, "warn_no_return": true, "warn_return_any": false, "warn_unused_ignores": false}, "path": "/Users/pradyunsg/.venvwrap/venvs/tmp-6d13a16911bf03c/lib/mypy/typeshed/stdlib/3/importlib/util.pyi", "size": 2011, "suppressed": [], "version_id": "0.610"}
    LOG:  Metadata fresh for importlib.util: file /Users/pradyunsg/.venvwrap/venvs/tmp-6d13a16911bf03c/lib/mypy/typeshed/stdlib/3/importlib/util.pyi
    TRACE: Looking for io at .mypy_cache/3.6/io.meta.json
    TRACE: Meta io {"child_modules": [], "data_mtime": 1528718788, "dep_lines": [1, 4, 5, 6, 7, 8, 1], "dep_prios": [5, 10, 10, 5, 10, 5, 30], "dependencies": ["typing", "builtins", "codecs", "mmap", "sys", "types", "abc"], "deps_mtime": null, "hash": "7453c9c6f57bd4d24ad11f9796cdd2a8", "id": "io", "ignore_all": false, "interface_hash": "648e42e230bcc9e7415430cf9f8028e4", "mtime": 1528718778, "options": {"always_false": [], "always_true": [], "check_untyped_defs": false, "disallow_any_decorated": false, "disallow_any_explicit": false, "disallow_any_expr": false, "disallow_any_generics": false, "disallow_any_unimported": false, "disallow_subclassing_any": false, "disallow_untyped_calls": false, "disallow_untyped_decorators": false, "disallow_untyped_defs": false, "follow_imports": "normal", "follow_imports_for_stubs": false, "ignore_errors": false, "ignore_missing_imports": false, "local_partial_types": false, "no_implicit_optional": false, "platform": "darwin", "quick_and_dirty": false, "show_none_errors": true, "strict_boolean": false, "strict_optional": true, "strict_optional_whitelist": null, "warn_no_return": true, "warn_return_any": false, "warn_unused_ignores":false}, "path": "/Users/pradyunsg/.venvwrap/venvs/tmp-6d13a16911bf03c/lib/mypy/typeshed/stdlib/3/io.pyi", "size": 10514, "suppressed": [], "version_id": "0.610"}
    LOG:  Metadata fresh for io: file /Users/pradyunsg/.venvwrap/venvs/tmp-6d13a16911bf03c/lib/mypy/typeshed/stdlib/3/io.pyi
    TRACE: Looking for posix at .mypy_cache/3.6/posix.meta.json
    TRACE: Meta posix {"child_modules": [], "data_mtime": 1528718788, "dep_lines": [5, 6, 1, 1], "dep_prios": [10, 5, 5, 30], "dependencies": ["sys", "typing", "builtins", "abc"], "deps_mtime": null, "hash": "422dd27650aebd83c5e8942ec4090a6d", "id": "posix", "ignore_all": false, "interface_hash": "594c2710fd8ffe3cda548414492f98c5", "mtime": 1528718778, "options": {"always_false": [], "always_true": [], "check_untyped_defs": false, "disallow_any_decorated": false, "disallow_any_explicit": false, "disallow_any_expr": false, "disallow_any_generics": false, "disallow_any_unimported": false, "disallow_subclassing_any": false, "disallow_untyped_calls": false, "disallow_untyped_decorators": false, "disallow_untyped_defs": false, "follow_imports": "normal", "follow_imports_for_stubs": false, "ignore_errors": false, "ignore_missing_imports": false, "local_partial_types": false, "no_implicit_optional": false, "platform": "darwin", "quick_and_dirty": false, "show_none_errors": true, "strict_boolean": false, "strict_optional": true, "strict_optional_whitelist": null, "warn_no_return": true, "warn_return_any": false, "warn_unused_ignores": false}, "path": "/Users/pradyunsg/.venvwrap/venvs/tmp-6d13a16911bf03c/lib/mypy/typeshed/stdlib/3/posix.pyi", "size": 2761, "suppressed": [], "version_id": "0.610"}
    LOG:  Metadata fresh for posix: file /Users/pradyunsg/.venvwrap/venvs/tmp-6d13a16911bf03c/lib/mypy/typeshed/stdlib/3/posix.pyi
    TRACE: Looking for os.path at .mypy_cache/3.6/os/path.meta.json
    TRACE: Meta os.path {"child_modules": [], "data_mtime": 1528718788, "dep_lines": [5, 6, 7, 15, 1], "dep_prios": [5, 10, 5, 5, 30], "dependencies": ["posix", "sys", "typing", "builtins", "abc"], "deps_mtime": null, "hash": "5d7c85c6b51a5caa5ea8f9ab2da9a9dc", "id": "os.path", "ignore_all": false, "interface_hash": "5f77841cc8ef59e15e3b9b48ebb03dd7", "mtime": 1528718778, "options": {"always_false": [], "always_true": [], "check_untyped_defs": false, "disallow_any_decorated": false, "disallow_any_explicit": false, "disallow_any_expr": false, "disallow_any_generics": false, "disallow_any_unimported": false, "disallow_subclassing_any": false, "disallow_untyped_calls": false, "disallow_untyped_decorators": false, "disallow_untyped_defs": false, "follow_imports": "normal", "follow_imports_for_stubs": false, "ignore_errors": false, "ignore_missing_imports": false, "local_partial_types": false, "no_implicit_optional": false, "platform": "darwin", "quick_and_dirty": false, "show_none_errors": true, "strict_boolean": false, "strict_optional": true, "strict_optional_whitelist": null, "warn_no_return": true, "warn_return_any": false, "warn_unused_ignores": false}, "path": "/Users/pradyunsg/.venvwrap/venvs/tmp-6d13a16911bf03c/lib/mypy/typeshed/stdlib/3/os/path.pyi", "size": 6124, "suppressed": [], "version_id": "0.610"}
    LOG:  Metadata fresh for os.path: file /Users/pradyunsg/.venvwrap/venvs/tmp-6d13a16911bf03c/lib/mypy/typeshed/stdlib/3/os/path.pyi
    TRACE: Looking for importlib.machinery at .mypy_cache/3.6/importlib/machinery.meta.json
    TRACE: Meta importlib.machinery {"child_modules": [], "data_mtime": 1528718789, "dep_lines": [1, 1, 2, 3, 4, 9, 1, 1], "dep_prios": [20, 10, 10, 10, 5, 5, 5, 30], "dependencies": ["importlib", "importlib.abc", "sys", "types", "typing", "_importlib_modulespec", "builtins", "abc"], "deps_mtime": null, "hash": "18f1509f4c7bac3905a891bfe1574c95", "id": "importlib.machinery", "ignore_all": false, "interface_hash": "ed77d2c80905f2bcd6a9e389bf524360", "mtime": 1528718778, "options": {"always_false": [], "always_true": [], "check_untyped_defs": false, "disallow_any_decorated": false, "disallow_any_explicit": false, "disallow_any_expr": false, "disallow_any_generics": false, "disallow_any_unimported": false, "disallow_subclassing_any": false, "disallow_untyped_calls": false, "disallow_untyped_decorators": false, "disallow_untyped_defs": false, "follow_imports": "normal", "follow_imports_for_stubs": false, "ignore_errors": false, "ignore_missing_imports": false, "local_partial_types": false, "no_implicit_optional": false, "platform": "darwin", "quick_and_dirty": false, "show_none_errors": true, "strict_boolean": false, "strict_optional": true, "strict_optional_whitelist": null, "warn_no_return": true, "warn_return_any": false, "warn_unused_ignores": false}, "path": "/Users/pradyunsg/.venvwrap/venvs/tmp-6d13a16911bf03c/lib/mypy/typeshed/stdlib/3/importlib/machinery.pyi", "size": 7012, "suppressed": [], "version_id": "0.610"}
    LOG:  Metadata fresh for importlib.machinery: file /Users/pradyunsg/.venvwrap/venvs/tmp-6d13a16911bf03c/lib/mypy/typeshed/stdlib/3/importlib/machinery.pyi
    TRACE: Looking for codecs at .mypy_cache/3.6/codecs.meta.json
    TRACE: Meta codecs {"child_modules": [], "data_mtime": 1528718788, "dep_lines": [3, 4, 20, 21, 1], "dep_prios": [10, 5, 5, 10, 5], "dependencies": ["sys", "typing", "abc", "types", "builtins"], "deps_mtime": null, "hash": "f7942aaae6e6c5c52c24fcc57b041099", "id": "codecs", "ignore_all": false, "interface_hash": "1baccfdab9fbdd119ec22f62f8663ae1", "mtime": 1528718778, "options": {"always_false": [], "always_true": [], "check_untyped_defs": false, "disallow_any_decorated": false, "disallow_any_explicit": false, "disallow_any_expr": false, "disallow_any_generics": false, "disallow_any_unimported": false, "disallow_subclassing_any": false, "disallow_untyped_calls": false, "disallow_untyped_decorators": false, "disallow_untyped_defs": false, "follow_imports": "normal", "follow_imports_for_stubs": false, "ignore_errors": false, "ignore_missing_imports": false, "local_partial_types": false, "no_implicit_optional": false, "platform": "darwin", "quick_and_dirty": false, "show_none_errors": true, "strict_boolean": false, "strict_optional": true, "strict_optional_whitelist": null, "warn_no_return": true, "warn_return_any": false, "warn_unused_ignores": false}, "path": "/Users/pradyunsg/.venvwrap/venvs/tmp-6d13a16911bf03c/lib/mypy/typeshed/stdlib/2and3/codecs.pyi", "size": 8711, "suppressed": [], "version_id": "0.610"}
    LOG:  Metadata fresh for codecs: file /Users/pradyunsg/.venvwrap/venvs/tmp-6d13a16911bf03c/lib/mypy/typeshed/stdlib/2and3/codecs.pyi
    TRACE: Looking for mmap at .mypy_cache/3.6/mmap.meta.json
    TRACE: Meta mmap {"child_modules": [], "data_mtime": 1528718788, "dep_lines": [1, 2, 1, 1], "dep_prios": [10, 5, 5, 30], "dependencies": ["sys", "typing", "builtins", "abc"], "deps_mtime": null, "hash": "52640e7a9c6c085ca310a8cd992b4823", "id": "mmap", "ignore_all": false, "interface_hash": "5b382e7a1b0afbd536350568034b83f9", "mtime": 1528718778, "options": {"always_false": [], "always_true": [], "check_untyped_defs": false, "disallow_any_decorated": false, "disallow_any_explicit": false, "disallow_any_expr": false, "disallow_any_generics": false, "disallow_any_unimported": false, "disallow_subclassing_any": false, "disallow_untyped_calls": false, "disallow_untyped_decorators": false, "disallow_untyped_defs": false, "follow_imports": "normal", "follow_imports_for_stubs": false, "ignore_errors": false, "ignore_missing_imports": false, "local_partial_types": false, "no_implicit_optional": false, "platform": "darwin", "quick_and_dirty": false, "show_none_errors": true, "strict_boolean": false, "strict_optional": true, "strict_optional_whitelist": null, "warn_no_return": true, "warn_return_any": false, "warn_unused_ignores": false}, "path": "/Users/pradyunsg/.venvwrap/venvs/tmp-6d13a16911bf03c/lib/mypy/typeshed/stdlib/2and3/mmap.pyi", "size": 2904, "suppressed": [], "version_id": "0.610"}
    LOG:  Metadata fresh for mmap: file /Users/pradyunsg/.venvwrap/venvs/tmp-6d13a16911bf03c/lib/mypy/typeshed/stdlib/2and3/mmap.pyi
    LOG:  Loaded graph with 25 nodes (0.030 sec)
    LOG:  Found 8 SCCs; largest has 18 nodes
    TRACE: Priorities for _importlib_modulespec: abc:5 sys:10 typing:5 builtins:5
    TRACE: Priorities for types: sys:10 typing:5 _importlib_modulespec:5 builtins:5 abc:30
    TRACE: Priorities for abc: typing:5 sys:10 builtins:5
    TRACE: Priorities for typing: sys:10 abc:5 types:5 collections:10 builtins:5
    TRACE: Priorities for mmap: sys:10 typing:5 builtins:5 abc:30
    TRACE: Priorities for codecs: sys:10 typing:5 abc:5 types:10 builtins:5
    TRACE: Priorities for posix: sys:10 typing:5 builtins:5 abc:30
    TRACE: Priorities for importlib.abc: abc:5 os:10 sys:10 types:10 typing:5 _importlib_modulespec:5 builtins:5
    TRACE: Priorities for collections: sys:10 typing:5 collections.abc:10 builtins:5 abc:30
    TRACE: Priorities for os.path: posix:5 sys:10 typing:5 builtins:5 abc:30
    TRACE: Priorities for io: typing:5 builtins:10 codecs:10 mmap:5 sys:10 types:5 abc:30
    TRACE: Priorities for collections.abc: sys:10 collections:5 builtins:5 abc:30 typing:30
    TRACE: Priorities for sys: typing:5 types:5 importlib.abc:5 builtins:5 _importlib_modulespec:30 abc:30 importlib:30
    TRACE: Priorities for os: io:5 sys:10 typing:5 builtins:5 posix:5 os.path:10 abc:30
    TRACE: Priorities for importlib.machinery: importlib:20 importlib.abc:10 sys:10 types:10 typing:5 _importlib_modulespec:5 builtins:5 abc:30
    TRACE: Priorities for importlib.util: importlib:20 importlib.abc:10 importlib.machinery:10 sys:10 types:10 typing:5 builtins:5 abc:30
    TRACE: Priorities for importlib: importlib.util:10 importlib.abc:5 sys:10 types:10 typing:5 builtins:5 abc:30
    TRACE: Priorities for builtins: typing:5 abc:5 types:5 sys:10
    TRACE: Queuing fresh SCC (_importlib_modulespec types abc typing mmap codecs posix importlib.abc collections os.path io collections.abc sys os importlib.machinery importlib.util importlib builtins)
    TRACE: Priorities for threading:
    TRACE: Queuing fresh SCC (threading)
    TRACE: Priorities for time:
    TRACE: Queuing fresh SCC (time)
    TRACE: Priorities for string:
    TRACE: Queuing fresh SCC (string)
    TRACE: Priorities for ignored.two:
    TRACE: Queuing fresh SCC (ignored.two)
    TRACE: Priorities for ignored:
    TRACE: Queuing fresh SCC (ignored)
    TRACE: Priorities for logging:
    TRACE: Queuing fresh SCC (logging)
    TRACE: Priorities for one:
    LOG:  Processing 7 queued fresh SCCs
    LOG:  Build finished in 0.344 seconds with 23 modules, and 0 errors
    Traceback (most recent call last):
      File "/Users/pradyunsg/.venvwrap/venvs/tmp-6d13a16911bf03c/bin/mypy", line 11, in <module>
        sys.exit(console_entry())
      File "/Users/pradyunsg/.venvwrap/venvs/tmp-6d13a16911bf03c/lib/python3.6/site-packages/mypy/__main__.py", line 7, in console_entry
        main(None)
      File "/Users/pradyunsg/.venvwrap/venvs/tmp-6d13a16911bf03c/lib/python3.6/site-packages/mypy/main.py", line 91, in main
        res = type_check_only(sources, bin_dir, options, flush_errors, fscache)  # noqa
      File "/Users/pradyunsg/.venvwrap/venvs/tmp-6d13a16911bf03c/lib/python3.6/site-packages/mypy/main.py", line 148, in type_check_only
        fscache=fscache)
      File "/Users/pradyunsg/.venvwrap/venvs/tmp-6d13a16911bf03c/lib/python3.6/site-packages/mypy/build.py", line 185, in build
        flush_errors, fscache)
      File "/Users/pradyunsg/.venvwrap/venvs/tmp-6d13a16911bf03c/lib/python3.6/site-packages/mypy/build.py", line 285, in _build
        graph = dispatch(sources, manager)
      File "/Users/pradyunsg/.venvwrap/venvs/tmp-6d13a16911bf03c/lib/python3.6/site-packages/mypy/build.py", line 2398, in dispatch
        process_graph(graph, manager)
      File "/Users/pradyunsg/.venvwrap/venvs/tmp-6d13a16911bf03c/lib/python3.6/site-packages/mypy/build.py", line 2684, in process_graph
        process_fresh_modules(graph, prev_scc, manager)
      File "/Users/pradyunsg/.venvwrap/venvs/tmp-6d13a16911bf03c/lib/python3.6/site-packages/mypy/build.py", line 2770, in process_fresh_modules
        graph[id].fix_cross_refs()
      File "/Users/pradyunsg/.venvwrap/venvs/tmp-6d13a16911bf03c/lib/python3.6/site-packages/mypy/build.py", line 1853, in fix_cross_refs
        self.options.use_fine_grained_cache)
      File "/Users/pradyunsg/.venvwrap/venvs/tmp-6d13a16911bf03c/lib/python3.6/site-packages/mypy/fixup.py", line 25, in fixup_module
        node_fixer.visit_symbol_table(tree.names)
      File "/Users/pradyunsg/.venvwrap/venvs/tmp-6d13a16911bf03c/lib/python3.6/site-packages/mypy/fixup.py", line 95, in visit_symbol_table
        self.visit_type_info(value.node)
      File "/Users/pradyunsg/.venvwrap/venvs/tmp-6d13a16911bf03c/lib/python3.6/site-packages/mypy/fixup.py", line 48, in visit_type_info
        base.accept(self.type_fixer)
      File "/Users/pradyunsg/.venvwrap/venvs/tmp-6d13a16911bf03c/lib/python3.6/site-packages/mypy/types.py", line 512, in accept
        return visitor.visit_instance(self)
      File "/Users/pradyunsg/.venvwrap/venvs/tmp-6d13a16911bf03c/lib/python3.6/site-packages/mypy/fixup.py", line 156, in visit_instance
        inst.type = lookup_qualified_typeinfo(self.modules, type_ref, self.quick_and_dirty)
      File "/Users/pradyunsg/.venvwrap/venvs/tmp-6d13a16911bf03c/lib/python3.6/site-packages/mypy/fixup.py", line 246, in lookup_qualified_typeinfo
        assert quick_and_dirty, "Should never get here in normal mode"
    AssertionError: Should never get here in normal mode
    
  12. ilevkivskyi commented on Jun 11, 2018

    @ilevkivskyi
    Member

    Is it just me or does this look very weird?

    Yes it is. But I think I understand the idea, it seems to me all this weird dance is needed to convince mypy it needs to deserialize MyClass that has an apparently broken base. I didn't test this hypothesis, will try this later.

  13. pradyunsg commented on Jun 11, 2018

    @pradyunsg
    MemberAuthor
    from collections import namedtuple
    
    a = ['alpha', 'beta']
    
    
    class MyClass(namedtuple('MyClass', a)):
        pass
    

    This crashes as well.

  14. ilevkivskyi commented on Jun 13, 2018

    @ilevkivskyi
    Member

    OK, my hypothesis has another confirmation, just running a single file with MyClass and looking at the cache file I found this in cache entry for MyClass: "bases": ["test.namedtuple"] (note wrong module). So apparently this is just another manifestation of #4287 (assigned to me :P)

  15. gvanrossum commented on Jun 13, 2018

    @gvanrossum
    Member

    So, close as a duplicate and add crash label to #4287?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions