-
-
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.
Exception handling O(n) -> O(1) x 1.
This commit is the first in a commit chain fundamentally refactoring the private `beartype._decor._code._pep._error` subpackage responsible for raising human-readable exceptions in the event of type-checking violations from a linear- to constant-time algorithm, while still preserving optional support for linear-time behaviour in anticipation of permitting end users to conditionally enable linear-time type-checking under some subsequent stable release of `beartype`. Specifically, this commit refactors our O(1) type-checker to pass all metadata required by our exception handler to conditionally switch between O(1) and O(n) behaviour as required. Naturally, our exception handler has yet to actually use this metadata in any meaningful way. (*Automatic dogmas!*)
- Loading branch information
Showing
79 changed files
with
238 additions
and
133 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
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.