Skip to content

RuntimeError: Overloading is only supported in library stubs #30

Description

@joongh

I got an exception when I simply imported the module right after the installation of the module through pip.
Here is the whole error messages.

Python 3.5.1 (default, Jan 9 2018, 22:10:30)
[GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.42.1)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import prices
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/joong/.pyenv/versions/test_pot/lib/python3.5/site-packages/prices/__init__.py", line 6, in <module>
from .discount import (
File "/Users/joong/.pyenv/versions/test_pot/lib/python3.5/site-packages/prices/discount.py", line 4, in <module>
from .money import Money
File "/Users/joong/.pyenv/versions/test_pot/lib/python3.5/site-packages/prices/money.py", line 12, in <module>
class Money:
File "/Users/joong/.pyenv/versions/test_pot/lib/python3.5/site-packages/prices/money.py", line 61, in Money
def __truediv__(self, other: 'Money') -> Decimal:
File "/Users/joong/.pyenv/versions/3.5.1/lib/python3.5/typing.py", line 1184, in overload
raise RuntimeError("Overloading is only supported in library stubs")
RuntimeError: Overloading is only supported in library stubs
>>> ^D

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions