Skip to content

Commit ab0f4d0

Browse files
committed
Add Literal instead direct type
1 parent d58d7e8 commit ab0f4d0

File tree

1,043 files changed

+6254
-4462
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,043 files changed

+6254
-4462
lines changed

docs/source/refcards/v20_15/device/devicestatus/models.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Models
2020
details_url: Optional[str]
2121
image: Optional[str]
2222
name: Optional[str]
23-
status_list: Optional[List[StatusObject]]
23+
status_list: Optional[List[List[StatusObject]]]
2424
type_: Optional[str]
2525
2626

docs/source/refcards/v20_15/multicloud/interfacecolor.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Get WAN interface colors
1111

1212
.. code:: python
1313
14-
def get() -> List[str]: ...
14+
def get() -> List[List[str]]: ...
1515
1616
1717
Example:

docs/source/refcards/v20_15/statistics/approute/app_agg/aggregation/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Get aggregated data based on input query and filters. The data can be filtered o
1111

1212
.. code:: python
1313
14-
def post(payload: Any) -> List[AppRouteAppAggRespInner]: ...
14+
def post(payload: Any) -> List[List[AppRouteAppAggRespInner]]: ...
1515
1616
1717
Example:

docs/source/refcards/v20_15/statistics/approute/fec/aggregation/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Get aggregation data and fec recovery rate
1313
1414
def post(
1515
payload: Any, site_id: Optional[str] = None
16-
) -> List[AppRouteFecAggRespInner]: ...
16+
) -> List[List[AppRouteFecAggRespInner]]: ...
1717
1818
1919
Example:

docs/source/refcards/v20_15/statistics/approute/tloc/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Get tloc
1111

1212
.. code:: python
1313
14-
def post(payload: Any) -> List[AppRouteTlocRespInner]: ...
14+
def post(payload: Any) -> List[List[AppRouteTlocRespInner]]: ...
1515
1616
1717
Example:

docs/source/refcards/v20_15/statistics/approute/transport/summary/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Get application-aware routing statistics summary from device
1616
limit: Optional[int] = 5,
1717
query: Optional[str] = None,
1818
site_id: Optional[str] = None,
19-
) -> List[AppRouteFecAggRespInner]: ...
19+
) -> List[List[AppRouteFecAggRespInner]]: ...
2020
2121
2222
Example:

docs/source/refcards/v20_15/v1/feature_profile/mobility/global_/qos/models.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ Models
1313
1414
DefaultOptionTypeDef = Literal["default"]
1515
16+
BooleanFalseDef = Literal[False]
17+
1618
1719
class OneOfOnBooleanDefaultFalseOptionsDef1:
1820
option_type: VariableOptionTypeDef
@@ -28,7 +30,7 @@ Models
2830
2931
class OneOfOnBooleanDefaultFalseOptionsDef3:
3032
option_type: DefaultOptionTypeDef
31-
value: bool
33+
value: BooleanFalseDef # pytype: disable=annotation-type-mismatch
3234
3335
3436
class OneOfGigInterfaceRateDef1:

docs/source/refcards/v20_15/v1/feature_profile/nfvirtual/networks/wan/models.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ Models
4242
4343
DefaultModeDef = Literal["trunk"]
4444
45+
BooleanFalseDef = Literal[False]
46+
4547
Ipv4SubnetMaskDef = Literal[
4648
"0.0.0.0",
4749
"128.0.0.0",
@@ -223,7 +225,7 @@ Models
223225
224226
class OneOfDhcpOptionsDef2:
225227
option_type: DefaultOptionTypeDef
226-
value: Optional[bool]
228+
value: Optional[BooleanFalseDef]
227229
228230
229231
class OneOfIpv4AddressOptionsDef1:
@@ -259,7 +261,7 @@ Models
259261
260262
class OneOfShutdownOptionsDef2:
261263
option_type: DefaultOptionTypeDef
262-
value: Optional[bool]
264+
value: Optional[BooleanFalseDef]
263265
264266
265267
class OneOfDefaultGatewayOptionsDef1:

docs/source/refcards/v20_15/v1/feature_profile/nfvirtual/system/system_settings/models.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ Models
1313
1414
DefaultOptionTypeDef = Literal["default"]
1515
16+
BooleanFalseDef = Literal[False]
17+
1618
1719
class CreateNfvirtualSystemSettingsParcelPostResponse:
1820
"""
@@ -48,7 +50,7 @@ Models
4850
4951
class OneOfDpdkOptionsDef2:
5052
option_type: DefaultOptionTypeDef
51-
value: Optional[bool]
53+
value: Optional[BooleanFalseDef]
5254
5355
5456
class Data:

docs/source/refcards/v20_15/v1/feature_profile/sd_routing/service/dhcp_server/models.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ Models
4848
4949
DefaultOptionTypeDef = Literal["default"]
5050
51+
BooleanFalseDef = Literal[False]
52+
5153
5254
class OneOfIpV4AddressOptionsDef1:
5355
option_type: VariableOptionTypeDef
@@ -111,7 +113,7 @@ Models
111113
112114
class OneOfOnBooleanDefaultFalseNoVariableOptionsDef2:
113115
option_type: DefaultOptionTypeDef
114-
value: bool
116+
value: BooleanFalseDef # pytype: disable=annotation-type-mismatch
115117
116118
117119
class OneOfLeaseTimeOptionsDef1:

0 commit comments

Comments
 (0)