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
{{ message }}
This repository has been archived by the owner on Nov 21, 2024. It is now read-only.
Both provides static typing safety ant intellisense (type-hints).
(str, Enum) can be problematic as __str__ != __format__ for Enum
When instantiating pydantic Field defined as Literal no explicit import of specific Enum is needed
Support Literal when using as_default and as_global (additional optional argument must be provided).
additional minor refactoring:
use serialization_alias and validation_alias when applicable
replace RefId with Global[UUID]
customize public items in catalystwan/models/configuration/feature_profile/sdwan/policy_object/__init__.py and catalystwan/models/policy/__init__.py using PEP-562 features
Description of changes:
[Add more in depth analysis of what changed, provide logs, examples of usage]
Checklist:
Make sure to run pre-commit before committing changes
Make sure all checks have passed
PR description is clear and comprehensive
Mentioned the issue that this PR solves (if applicable)
Make sure you test the changes
The text was updated successfully, but these errors were encountered:
Pull Request summary:
Use
Literal
over theEnums
. Justification:(str, Enum)
can be problematic as__str__
!=__format__
for EnumLiteral
no explicit import of specificEnum
is neededSupport Literal when using
as_default
andas_global
(additional optional argument must be provided).additional minor refactoring:
serialization_alias
andvalidation_alias
when applicableRefId
withGlobal[UUID]
catalystwan/models/configuration/feature_profile/sdwan/policy_object/__init__.py
andcatalystwan/models/policy/__init__.py
using PEP-562 featuresDescription of changes:
[Add more in depth analysis of what changed, provide logs, examples of usage]
Checklist:
The text was updated successfully, but these errors were encountered: