Comments (1)
The ConfigBase._decode_attr
method uses the ModelField.type_
attribute from Pydantic to discover what type the attribute is.
Unfortunately it appears this does not behave the way I expect it to, as for the Set
type (and probably other data structure types), ModelField.type_
returns the type of the elements of the data structure, rather than the aggregated type of the data structure itself.
Changing it to ModelType.outer_type_
appears to fix the issue, but it really is the raw type hint, so any type annotations added using typing_extensions.Annotated
are also included here.
To discover the proper origin type, the whole tree of nested type definitions must be discovered, and parsed from the inside out.
from buildarr.
Related Issues (20)
- Add built-in support for resource creation/modification/deletion HOT 1
- Investigate re-introducing check mode
- Make `depends_on` in `buildarr compose` optional HOT 1
- Replace `field_default` with `optional` HOT 1
- Make the `manager` field on a plugin object optional
- Not issue Need guidance QNAP - Container Station - Portainer HOT 1
- error occurred while applying initial configuration: 1 validation error for RadarrApplication HOT 15
- `aenum` maintenance HOT 1
- Tag v0.8.0b1
- Rearchitect the `buildarr` Python package HOT 1
- Re-implement `BaseIntEnum`
- Add functional tests for configuration merging on file load
- Add formatting logic for `dict` type values in `ConfigBase._format_attr`
- Add a mechanism for retrying failed requests
- Resource type updating can fail when unexpected remote attributes are found
- instructions and details on yaml configuration and placement HOT 1
- Add `passwordConfirmation` handling to *Arr general settings models HOT 1
- Add built-in encoding/decoding support for IPv4/IPv6 addresses
- Add an `OSAgnosticPath` type
- Issue when running dump-config
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from buildarr.