forked from mesonbuild/meson
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cargo: Remove duplicated type definitions
Typing of Cargo manifest is really hard and requires to duplicate every fields in a TypedDict, with odd syntax to allow fields with dash. In the end it does not even add any type safety because we cast the raw toml object into whatever we want with no verifications. Instead, disable type checking of raw manifest by using T.Any in `from_raw()` class method that converts untyped raw object into typed python class. While at it, also remove incomplete attempt at supporting workspaces, a follow up PR will restore that functionality.
- Loading branch information
Showing
2 changed files
with
43 additions
and
319 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
Oops, something went wrong.