-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplify logic with overriding callee in cases of TypedDict.get funct…
…ions. After poking around with this a bunch today I realized it would be much simplier to simply create a context-specific Callable as opposed to attemping to hijack the rest of the typechecking. The original implementation had problems in places, for example where a TypedDict had a List field. A default empty list was not being coerced correctly.
- Loading branch information
Roy Williams
committed
Jan 12, 2017
1 parent
c5f7481
commit 8c5975e
Showing
2 changed files
with
28 additions
and
22 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