This repository has been archived by the owner on Nov 22, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 799
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make PyText compatible with Any type
Summary: As discussed in https://fb.workplace.com/groups/300451907202972/permalink/566773450570815/, it seems like there is no support for the following: - `Any` or `Dict[str, Any]`: PyText serailize.py complains - `Dict[str, Union[str, float]]`: bad support of Union in Dict at flow level Anyway, this is blocking and I don't see stark downside of adding interim support for `Any` in `serialize.py`. This typing issue is blocking the large stack. Reviewed By: kmalik22 Differential Revision: D19699214 fbshipit-source-id: 370a7d138aae3c9a96d0e302e1657585242098e6
- Loading branch information
1 parent
d93b589
commit 4aa8ffd
Showing
2 changed files
with
42 additions
and
3 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