• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

jstasiak / python-zeroconf / 335
94%
master: 94%

Build:
Build:
LAST BUILD BRANCH: fix_typing
DEFAULT BRANCH: master
Ran 19 Sep 2018 10:09PM UTC
Jobs 4
Files 1
Run time 43s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
335

push

travis-ci

jstasiak
Fix typing-related TypeError

Older typing versions don't allow what we did[1]. We don't really need
to be that precise here anyway.

The error:

    $ python
    Python 3.5.2 (default, Nov 23 2017, 16:37:01)
    [GCC 5.4.0 20160609] on linux
    Type "help", "copyright", "credits" or "license" for more information.
    >>> import zeroconf
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
      File "/scraper/venv/lib/python3.5/site-packages/zeroconf.py", line 320, in <module>
        OptionalExcInfo = Tuple[Optional[Type[BaseException]], Optional[BaseException], Optional[TracebackType]]
      File "/usr/lib/python3.5/typing.py", line 649, in __getitem__
        return Union[arg, type(None)]
      File "/usr/lib/python3.5/typing.py", line 552, in __getitem__
        dict(self.__dict__), parameters, _root=True)
      File "/usr/lib/python3.5/typing.py", line 512, in __new__
        for t2 in all_params - {t1} if not isinstance(t2, TypeVar)):
      File "/usr/lib/python3.5/typing.py", line 512, in <genexpr>
        for t2 in all_params - {t1} if not isinstance(t2, TypeVar)):
      File "/usr/lib/python3.5/typing.py", line 1077, in __subclasscheck__
        if super().__subclasscheck__(cls):
      File "/usr/lib/python3.5/abc.py", line 225, in __subclasscheck__
        for scls in cls.__subclasses__():
    TypeError: descriptor '__subclasses__' of 'type' object needs an argument

Closes #141
Fixes: 1f33c4f8a805 ("Introduce some static type analysis to the codebase")

[1] https://github.com/python/typing/issues/266

2 of 2 new or added lines in 1 file covered. (100.0%)

1113 of 1188 relevant lines covered (93.69%)

3.75 hits per line

Jobs
ID Job ID Ran Files Coverage
2 335.2 19 Sep 2018 10:09PM UTC 0
93.69
Travis Job 335.2
3 335.3 19 Sep 2018 10:09PM UTC 0
93.69
Travis Job 335.3
4 335.4 19 Sep 2018 10:10PM UTC 0
93.69
Travis Job 335.4
5 335.5 19 Sep 2018 10:10PM UTC 0
93.69
Travis Job 335.5
Source Files on build 335
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #335
  • 627c22e1 on github
  • Prev Build on js (#323)
  • Next Build on js (#338)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc