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

unipartdigital / idiosync
72%

Build:
DEFAULT BRANCH: master
Repo Added 19 Feb 2020 01:19AM UTC
Files 20
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

LAST BUILD ON BRANCH master
branch: SELECT
CHANGE BRANCH
x
  • No branch selected
  • master
  • nightly

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

Relevant lines Covered
Build:
Build:
1426 RELEVANT LINES 1078 COVERED LINES
0.76 HITS PER LINE
Source Files on master
Detailed source file information is not available for this build.

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
52 master 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... push 27 Feb 2020 12:04PM UTC mcb30 travis-ci-com pending completion  
51 master test: Allow Python nightly builds to fail Python nightly builds tend to fail regularly due to temporary errors in installing dependencies. Allow these builds to fail without impacting the overall build status. Signed-off-by: Michael Brown <mbro... push 27 Feb 2020 12:02PM UTC mcb30 travis-ci-com pending completion  
50 nightly test: Allow Python nightly builds to fail Python nightly builds tend to fail regularly due to temporary errors in installing dependencies. Allow these builds to fail without impacting the overall build status. Signed-off-by: Michael Brown <mbro... push 27 Feb 2020 11:11AM UTC mcb30 travis-ci-com pending completion  
49 master 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... push 27 Feb 2020 10:34AM UTC mcb30 travis-ci-com pending completion  
47 master base: Add type annotations throughout Signed-off-by: Michael Brown <mbrown@fensystems.co.uk> push 26 Feb 2020 01:31AM UTC mcb30 travis-ci-com pending completion  
46 master base: Add type annotations throughout Signed-off-by: Michael Brown <mbrown@fensystems.co.uk> push 26 Feb 2020 01:14AM UTC mcb30 travis-ci-com pending completion  
45 master ldap: Use typing.Pattern as type hint The typing module provides typing.Pattern to be used in place of re.Pattern (which is not recognised by mypy). Signed-off-by: Michael Brown <mbrown@fensystems.co.uk> push 26 Feb 2020 01:01AM UTC mcb30 travis-ci-com pending completion  
44 master test: Disable pylint no-member warning The pylint no-member warning generates a large number of false positives, and complicates the task of adding accurate type hints. Disable this warning in preparation for wider use of type hints. Signed-off-... push 26 Feb 2020 12:35AM UTC mcb30 travis-ci-com pending completion  
43 master test: Add type annotations to instance attributes Add type annotations to instance attributes, and switch to using dataclasses where this results in simpler code. Signed-off-by: Michael Brown <mbrown@fensystems.co.uk> push 19 Feb 2020 02:59PM UTC mcb30 travis-ci-com pending completion  
42 master test: Use direct type aliases to bypass name conflicts Use direct type aliases such as "Config_ = Config" rather then defining a dedicated "ConfigType = Type[Config]", since the type alias may be required when annotating instance variables. Sign... push 19 Feb 2020 10:37AM UTC mcb30 travis-ci-com pending completion  
See All Builds (12)
  • Repo on GitHub
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