You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The use of Pydantic type adapters are quite unwieldy in the program at this point. It involves creation of a type adapter for each type that needed one but, for performance reason, one should avoid repeatedly creating adapters for the same type. Thus, for each type that currently needs a type adapter, an adapter is created at
This set up is not sustainable if more types need a type adapter. Create some class that stores adapters in a dictionary keyed by the type they are intended for.
The following snipped exhibit properties they are useful in implementing such a class.
snippet exhibiting properties useful in implementing such a class
The use of Pydantic type adapters are quite unwieldy in the program at this point. It involves creation of a type adapter for each type that needed one but, for performance reason, one should avoid repeatedly creating adapters for the same type. Thus, for each type that currently needs a type adapter, an adapter is created at
dandisets-linkml-status-tools/src/dandisets_linkml_status_tools/models.py
Lines 235 to 240 in b4963c4
This set up is not sustainable if more types need a type adapter. Create some class that stores adapters in a dictionary keyed by the type they are intended for.
The following snipped exhibit properties they are useful in implementing such a class.
snippet exhibiting properties useful in implementing such a class
The text was updated successfully, but these errors were encountered: