Skip to content

Conversation

@squiddy
Copy link
Contributor

@squiddy squiddy commented Oct 15, 2016

No description provided.

@gvanrossum gvanrossum merged commit 5624e7f into python:master Oct 15, 2016
@gvanrossum
Copy link
Member

Thanks! I've forgotten how this works for Python 2 (shouldn't they all be imported using "Foo as Foo"?) but it seems to work. Hope you'll contribute more!

@squiddy squiddy deleted the collections-container branch October 15, 2016 16:11
squiddy added a commit to unknown-horizons/unknown-horizons that referenced this pull request Oct 20, 2016
Changes include:

  * Ignore conditional import for now
  * Ignore collections.Container error (wait for
    python/typeshed#608)
  * Switch to relative imports in horizons.util.shapes

    The previous code imported from shapes/__init__.py. I believe mypy
    had some problems with import cycles, because it couldn't import Point
    etc. This is a bit better, the submodule itself should import
    directly, and only then can we provide better imports by reexporting
    from __init__.
hswong3i pushed a commit to alvistack/python-typeshed that referenced this pull request Jun 4, 2025
Refer to python/cpython#133961

I copied the tests from Python 3.14. Two don't pass but could probably be
made to pass by backporting more of annotationlib, but that's more than
I think we should do now.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants