Skip to content

[PyYAML] Use Incomplete instead of Any - #16197

Open
donbarbos wants to merge 1 commit into
python:mainfrom
donbarbos:pyyaml-use-incomplete
Open

[PyYAML] Use Incomplete instead of Any#16197
donbarbos wants to merge 1 commit into
python:mainfrom
donbarbos:pyyaml-use-incomplete

Conversation

@donbarbos

Copy link
Copy Markdown
Contributor

In some places, Any was intended to represent a Python object corresponding to a YAML value.
I think we could be more precise than simply using Any here for example, by defining a TypeAlias for the possible types (list, dict, etc.) and adding a comment explaining the choice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant