Skip to content
This repository has been archived by the owner on Nov 22, 2022. It is now read-only.

Make PyText compatible with Any type #1242

Closed
wants to merge 1 commit into from

Conversation

jessemin
Copy link
Contributor

@jessemin jessemin commented Feb 5, 2020

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

@facebook-github-bot facebook-github-bot added the CLA Signed Do not delete this pull request or issue due to inactivity. label Feb 5, 2020
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D19699214

Summary:
Pull Request resolved: facebookresearch#1242

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: e80287240bdcfe2a4c24957b9cfe1049ed312659
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D19699214

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 14d942e.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
CLA Signed Do not delete this pull request or issue due to inactivity. Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants