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

unipartdigital / idiosync / 52
72%

Build:
DEFAULT BRANCH: master
Ran 27 Feb 2020 12:04PM UTC
Jobs 1
Files 20
Run time 7s
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
52

push

travis-ci-com

mcb30
base: Define a per-class Self type variable where applicable

The recommended pattern for annotating class methods that return
instances (e.g. alternative constructors) involves first defining a
type variable bound to the class and then explicitly annotating the
"cls" parameter of the class method.  This can become excessively
verbose given that type variables may not be reassigned and so require
unique names in the global namespace.

As a cleaner alternative, define a type variable "Self" within the
class namespace, thereby allowing alternative constructors to be
annotated using syntax such as:

  def create(cls: Type[Self]) -> Self: ...

Signed-off-by: Michael Brown <mbrown@fensystems.co.uk>

241 of 404 branches covered (59.65%)

Branch coverage included in aggregate %.

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

1078 of 1426 relevant lines covered (75.6%)

0.76 hits per line

Jobs
ID Job ID Ran Files Coverage
1 52.1 27 Feb 2020 12:04PM UTC 0
72.08
Travis Job 52.1
Source Files on build 52
Detailed source file information is not available for this build.
  • Back to Repo
  • Build #52
  • 068f6f75 on github
  • Prev Build on master (#51)
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