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 next in a commit chain repairing currently failing tests pertaining to the `beartype.door` subpackage, recently implemented by Harvard microscopist and general genius @tlambert03 in PR #136. Specifically, this commit: * Declares a new `beartype.roar.BeartypeDoorNonpepException` type, raised when the `beartype.roar.TypeHint` constructor is passed an object that is *not* a PEP-compliant type hint currently supported by the DOOR API. * Extricates the `beartype.door._doorcls.is_subclass()` and `beartype.door._doorcls.die_unless_typehint()` functions into a new `beartype.door._doortest` submodule for maintainability. * Folds the prior `test_typehint_fail()` unit test into the existing `test_typehint_new()` unit test. (*Thunderous blunderbuss!*)
- Loading branch information