-
-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit is the first in a commit chain rendering `beartype` compliant with PEP 561 by annotating the codebase in a manner specifically compatible with the most popular third-party static type checker, mypy, en-route to eventually resolving issue #25 kindly submitted by best macOS package manager ever @harens. Specifically, this commit: * Resolves a variety of mypy errors by annotating various callables and classes in a mypy-compliant manner. Nonetheless, a variety of mypy errors remain. *Thus begins the eternal battle for quality assurance.* * Adds a functional test exercising compatibility across the entire codebase with mypy. * Adds an optional test-time developer dependency on a fairly recent version of mypy. (*Flippant eternity's slipshod paternity!*)
- Loading branch information
Showing
33 changed files
with
541 additions
and
218 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# --------------------( LICENSE )-------------------- | ||
# Copyright (c) 2014-2021 Cecil Curry. | ||
# See "LICENSE" for further details. | ||
# | ||
# --------------------( SYNOPSIS )-------------------- | ||
# Project-wide mypy configuration, applied to all invocations of the mypy | ||
# static type-checker within this project. | ||
# | ||
# --------------------( SEE ALSO )-------------------- | ||
# * https://mypy.readthedocs.io/en/stable/config_file.html | ||
# Official documentation on this file format. | ||
|
||
# ....................{ GLOBAL }................... | ||
# The following mypy-specific section specifier is mandatory, despite this | ||
# file's unambiguous basename of ".mypy.ini". One is enraged by bureaucracy! | ||
[mypy] | ||
|
||
# Display machine-readable "["- and "]"-bracketed error codes in *ALL* | ||
# mypy-specific error messages. This option is disabled by default, which is | ||
# awful, because these codes are the *ONLY* means of explicitly ignoring | ||
# specific mypy errors with "# type: ignore[{error_code}]" comments littered | ||
# throughout this project's codebase. Type-checked serenity now! | ||
show_error_codes = True |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.