forked from joke2k/faker
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Overload hash generation functions to make return types more specific
Before this change, the return type for these functions was always `bytes| str`. However, the type can be narrowed based on the value passed to `raw_output`. This change adds overload annotations for the two allowable values to allow type checkers to narrow the type and correctly infer the exact return type. Resolves joke2k#2046
- Loading branch information
Showing
2 changed files
with
68 additions
and
4 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