Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

Allow postponed annotations for config classes #4883

Merged
merged 1 commit into from
Jun 29, 2022

Conversation

liuzhe-lz
Copy link
Contributor

Description

Previously config classes do not support from __future__ import annotations, in which case Field.type will be strings and cannot be checked by typeguard.

Other changes:

  • Add type hints to an internal util module
  • Use Literal for training service platform type hints.

Checklist

  • test case
  • doc

How to test

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants