Skip to content

Commit d58e28f

Browse files
authored
Enforce strict checking during the Sphinx documentation build process (#34879)
1 parent cab510b commit d58e28f

File tree

5 files changed

+47
-33
lines changed

5 files changed

+47
-33
lines changed

sdk/maps/azure-maps-route/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ objects are async context managers and define async `close` methods.
103103
The following sections provide several code snippets covering some of the most common Azure Maps Route tasks, including:
104104

105105
- [Request and Get Route Directions](#request-and-get-route-directions)
106-
- [Request and Get Route Range](#reqest-and-get-route-range)
106+
- [Request and Get Route Range](#request-and-get-route-range)
107107
- [Get Route Matrix](#get-route-matrix)
108108
- [Get Route Directions Batch](#get-route-directions-batch)
109109

sdk/maps/azure-maps-route/azure/maps/route/_route_client.py

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,9 @@ def get_route_directions(
153153
parameter was not specified by the caller. "effectiveSettings" Default value is None.
154154
:paramtype report: str or ~azure.maps.route.models.Report
155155
:keyword filter_section_type: Specifies which of the section types is reported in the route
156-
response. :code:`<br>`:code:`<br>`For example if sectionType = pedestrian the sections which
156+
response.
157+
158+
For example if sectionType = pedestrian the sections which
157159
are suited for pedestrians only are returned. Multiple types can be used. The default
158160
sectionType refers to the travelMode input. By default travelMode is set to car. Known values
159161
are: "carTrain", "country", "ferry", "motorway", "pedestrian", "tollRoad", "tollVignette",
@@ -191,7 +193,7 @@ def get_route_directions(
191193
vehicles may not be allowed to drive on some roads. Default value is False.
192194
:paramtype is_commercial_vehicle: bool
193195
:keyword windingness: Level of turns for thrilling route. This parameter can only be used in
194-
conjunction with ``routeType``=thrilling. Known values are: "low", "normal", and "high".
196+
conjunction with ``routeType=thrilling``. Known values are: "low", "normal", and "high".
195197
Default value is None.
196198
:paramtype windingness: str or ~azure.maps.route.models.WindingnessLevel
197199
:keyword incline_level: Degree of hilliness for thrilling route. This parameter can only be
@@ -600,7 +602,9 @@ def get_route_matrix(
600602
best-estimate travel time. Known values are: "none" and "all". Default value is None.
601603
:paramtype compute_travel_time: str or ~azure.maps.route.models.ComputeTravelTime
602604
:keyword filter_section_type: Specifies which of the section types is reported in the route
603-
response. :code:`<br>`:code:`<br>`For example if sectionType = pedestrian the sections which
605+
response.
606+
607+
For example if sectionType = pedestrian the sections which
604608
are suited for pedestrians only are returned. Multiple types can be used. The default
605609
sectionType refers to the travelMode input. By default travelMode is set to car. Known values
606610
are: "carTrain", "country", "ferry", "motorway", "pedestrian", "tollRoad", "tollVignette",
@@ -733,7 +737,9 @@ def begin_get_route_matrix_batch(
733737
best-estimate travel time. Known values are: "none" and "all". Default value is None.
734738
:paramtype compute_travel_time: str or ~azure.maps.route.models.ComputeTravelTime
735739
:keyword filter_section_type: Specifies which of the section types is reported in the route
736-
response. :code:`<br>`:code:`<br>`For example if sectionType = pedestrian the sections which
740+
response.
741+
742+
For example if sectionType = pedestrian the sections which
737743
are suited for pedestrians only are returned. Multiple types can be used. The default
738744
sectionType refers to the travelMode input. By default travelMode is set to car. Known values
739745
are: "carTrain", "country", "ferry", "motorway", "pedestrian", "tollRoad", "tollVignette",

sdk/maps/azure-maps-route/azure/maps/route/aio/_route_client_async.py

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ def get_batch_id_from_poller(polling_method):
3434
# By default, use the latest supported API version
3535
class MapsRouteClient(AsyncMapsRouteClientBase):
3636
"""Azure Maps Route REST APIs.
37+
3738
:param credential:
3839
Credential needed for the client to connect to Azure.
3940
:type credential:
@@ -153,7 +154,9 @@ async def get_route_directions(
153154
parameter was not specified by the caller. "effectiveSettings" Default value is None.
154155
:paramtype report: str or ~azure.maps.route.models.Report
155156
:keyword filter_section_type: Specifies which of the section types is reported in the route
156-
response. :code:`<br>`:code:`<br>`For example if sectionType = pedestrian the sections which
157+
response.
158+
159+
For example if sectionType = pedestrian the sections which
157160
are suited for pedestrians only are returned. Multiple types can be used. The default
158161
sectionType refers to the travelMode input. By default travelMode is set to car. Known values
159162
are: "carTrain", "country", "ferry", "motorway", "pedestrian", "tollRoad", "tollVignette",
@@ -191,11 +194,11 @@ async def get_route_directions(
191194
vehicles may not be allowed to drive on some roads. Default value is False.
192195
:paramtype is_commercial_vehicle: bool
193196
:keyword windingness: Level of turns for thrilling route. This parameter can only be used in
194-
conjunction with ``routeType``=thrilling. Known values are: "low", "normal", and "high".
197+
conjunction with ``routeType=thrilling``. Known values are: "low", "normal", and "high".
195198
Default value is None.
196199
:paramtype windingness: str or ~azure.maps.route.models.WindingnessLevel
197200
:keyword incline_level: Degree of hilliness for thrilling route. This parameter can only be
198-
used in conjunction with ``routeType``=thrilling. Known values are: "low", "normal", and
201+
used in conjunction with ``routeType=thrilling``. Known values are: "low", "normal", and
199202
"high". Default value is None.
200203
:paramtype incline_level: str or ~azure.maps.route.models.InclineLevel
201204
:keyword travel_mode: The mode of travel for the requested route. If not defined, default is
@@ -377,11 +380,11 @@ async def get_route_range(
377380
Default value is None.
378381
:paramtype travel_mode: str or ~azure.maps.route.models.TravelMode
379382
:keyword incline_level: Degree of hilliness for thrilling route. This parameter can only be
380-
used in conjunction with ``routeType``=thrilling. Known values are: "low", "normal", and
383+
used in conjunction with ``routeType=thrilling``. Known values are: "low", "normal", and
381384
"high". Default value is None.
382385
:paramtype incline_level: str or ~azure.maps.route.models.InclineLevel
383386
:keyword windingness: Level of turns for thrilling route. This parameter can only be used in
384-
conjunction with ``routeType``=thrilling. Known values are: "low", "normal", and "high".
387+
conjunction with ``routeType=thrilling``. Known values are: "low", "normal", and "high".
385388
Default value is None.
386389
:paramtype windingness: str or ~azure.maps.route.models.WindingnessLevel
387390
:keyword vehicle_axle_weight: Weight per axle of the vehicle in kg. A value of 0 means that
@@ -600,7 +603,9 @@ async def get_route_matrix(
600603
best-estimate travel time. Known values are: "none" and "all". Default value is None.
601604
:paramtype compute_travel_time: str or ~azure.maps.route.models.ComputeTravelTime
602605
:keyword filter_section_type: Specifies which of the section types is reported in the route
603-
response. :code:`<br>`:code:`<br>`For example if sectionType = pedestrian the sections which
606+
response.
607+
608+
For example if sectionType = pedestrian the sections which
604609
are suited for pedestrians only are returned. Multiple types can be used. The default
605610
sectionType refers to the travelMode input. By default travelMode is set to car. Known values
606611
are: "carTrain", "country", "ferry", "motorway", "pedestrian", "tollRoad", "tollVignette",
@@ -634,11 +639,11 @@ async def get_route_matrix(
634639
:keyword vehicle_weight: Weight of the vehicle in kilograms. Default value is 0.
635640
:paramtype vehicle_weight: int
636641
:keyword windingness: Level of turns for thrilling route. This parameter can only be used in
637-
conjunction with ``routeType``=thrilling. Known values are: "low", "normal", and "high".
642+
conjunction with ``routeType=thrilling``. Known values are: "low", "normal", and "high".
638643
Default value is None.
639644
:paramtype windingness: str or ~azure.maps.route.models.WindingnessLevel
640645
:keyword incline_level: Degree of hilliness for thrilling route. This parameter can only be
641-
used in conjunction with ``routeType``=thrilling. Known values are: "low", "normal", and
646+
used in conjunction with ``routeType=thrilling``. Known values are: "low", "normal", and
642647
"high". Default value is None.
643648
:paramtype incline_level: str or ~azure.maps.route.models.InclineLevel
644649
:keyword travel_mode: The mode of travel for the requested route. If not defined, default is
@@ -733,7 +738,9 @@ async def begin_get_route_matrix_batch(
733738
best-estimate travel time. Known values are: "none" and "all". Default value is None.
734739
:paramtype compute_travel_time: str or ~azure.maps.route.models.ComputeTravelTime
735740
:keyword filter_section_type: Specifies which of the section types is reported in the route
736-
response. :code:`<br>`:code:`<br>`For example if sectionType = pedestrian the sections which
741+
response.
742+
743+
For example if sectionType = pedestrian the sections which
737744
are suited for pedestrians only are returned. Multiple types can be used. The default
738745
sectionType refers to the travelMode input. By default travelMode is set to car. Known values
739746
are: "carTrain", "country", "ferry", "motorway", "pedestrian", "tollRoad", "tollVignette",
@@ -767,11 +774,11 @@ async def begin_get_route_matrix_batch(
767774
:keyword vehicle_weight: Weight of the vehicle in kilograms. Default value is 0.
768775
:paramtype vehicle_weight: int
769776
:keyword windingness: Level of turns for thrilling route. This parameter can only be used in
770-
conjunction with ``routeType``=thrilling. Known values are: "low", "normal", and "high".
777+
conjunction with ``routeType=thrilling``. Known values are: "low", "normal", and "high".
771778
Default value is None.
772779
:paramtype windingness: str or ~azure.maps.route.models.WindingnessLevel
773780
:keyword incline_level: Degree of hilliness for thrilling route. This parameter can only be
774-
used in conjunction with ``routeType``=thrilling. Known values are: "low", "normal", and
781+
used in conjunction with ``routeType=thrilling``. Known values are: "low", "normal", and
775782
"high". Default value is None.
776783
:paramtype incline_level: str or ~azure.maps.route.models.InclineLevel
777784
:keyword travel_mode: The mode of travel for the requested route. If not defined, default is

sdk/maps/azure-maps-route/azure/maps/route/models/_models.py

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -265,12 +265,12 @@ class GeoJsonObjectType(str, Enum, metaclass=CaseInsensitiveEnumMeta):
265265

266266
class GeoJsonObject(msrest.serialization.Model):
267267
"""A valid ``GeoJSON`` object.
268-
Please refer to `RFC 7946 <https://tools.ietf.org/html/rfc7946#section-3>`_ for details.
268+
Please refer to `RFC 7946 <https://tools.ietf.org/html/rfc7946#section-3>`__ for details.
269269
270270
You probably want to use the sub-classes and not this class directly. Known
271271
sub-classes are: GeoJsonFeature, GeoJsonFeatureCollection, GeoJsonGeometry,
272-
GeoJsonGeometryCollection, GeoJsonLineString, GeoJsonMultiLineString,
273-
GeoJsonMultiPoint, GeoJsonMultiPolygon, GeoJsonPoint, GeoJsonPolygon.
272+
GeoJsonGeometryCollection, GeoJsonLineString, GeoJsonMultiLineString,
273+
GeoJsonMultiPoint, GeoJsonMultiPolygon, GeoJsonPoint, GeoJsonPolygon.
274274
275275
All required parameters must be populated in order to send to Azure.
276276
@@ -313,7 +313,7 @@ class GeoJsonFeatureData(msrest.serialization.Model):
313313
All required parameters must be populated in order to send to Azure.
314314
315315
:param geometry: Required. A valid ``GeoJSON`` object. Please refer to `RFC 7946
316-
<https://tools.ietf.org/html/rfc7946#section-3>`_ for details.
316+
<https://tools.ietf.org/html/rfc7946#section-3>`__ for details.
317317
:type geometry: ~azure.maps.route.models.GeoJsonObject
318318
:param properties: Properties can contain any additional metadata about the ``Feature``. Value
319319
can be any JSON object or a JSON null value.
@@ -348,12 +348,12 @@ def __init__(
348348

349349
class GeoJsonFeature(GeoJsonObject, GeoJsonFeatureData):
350350
"""A valid ``GeoJSON Feature`` object type.
351-
Please refer to `RFC 7946 <https://tools.ietf.org/html/rfc7946#section-3.2>`_ for details.
351+
Please refer to `RFC 7946 <https://tools.ietf.org/html/rfc7946#section-3.2>`__ for details.
352352
353353
All required parameters must be populated in order to send to Azure.
354354
355355
:param geometry: Required. A valid ``GeoJSON`` object. Please refer to `RFC 7946
356-
<https://tools.ietf.org/html/rfc7946#section-3>`_ for details.
356+
<https://tools.ietf.org/html/rfc7946#section-3>`__ for details.
357357
:type geometry: ~azure.maps.route.models.GeoJsonObject
358358
:param properties: Properties can contain any additional metadata about the ``Feature``. Value
359359
can be any JSON object or a JSON null value.
@@ -427,7 +427,7 @@ def __init__(
427427

428428
class GeoJsonFeatureCollection(GeoJsonObject, GeoJsonFeatureCollectionData):
429429
"""A valid ``GeoJSON FeatureCollection`` object type.
430-
Please refer to `RFC 7946 <https://tools.ietf.org/html/rfc7946#section-3.3>`_ for details.
430+
Please refer to `RFC 7946 <https://tools.ietf.org/html/rfc7946#section-3.3>`__ for details.
431431
432432
All required parameters must be populated in order to send to Azure.
433433
@@ -466,7 +466,7 @@ class GeoJsonGeometry(GeoJsonObject):
466466
"""A valid ``GeoJSON`` geometry object.
467467
The type must be one of the seven valid GeoJSON geometry types -
468468
Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon and GeometryCollection.
469-
Please refer to `RFC 7946 <https://tools.ietf.org/html/rfc7946#section-3.1>`_ for details.
469+
Please refer to `RFC 7946 <https://tools.ietf.org/html/rfc7946#section-3.1>`__ for details.
470470
471471
All required parameters must be populated in order to send to Azure.
472472
@@ -524,7 +524,7 @@ def __init__(
524524

525525
class GeoJsonGeometryCollection(GeoJsonObject, GeoJsonGeometryCollectionData):
526526
"""A valid ``GeoJSON GeometryCollection`` object type.
527-
Please refer to `RFC 7946 <https://tools.ietf.org/html/rfc7946#section-3.1.8>`_ for details.
527+
Please refer to `RFC 7946 <https://tools.ietf.org/html/rfc7946#section-3.1.8>`__ for details.
528528
529529
All required parameters must be populated in order to send to Azure.
530530
@@ -588,7 +588,7 @@ def __init__(
588588

589589
class GeoJsonLineString(GeoJsonObject, GeoJsonLineStringData):
590590
"""A valid ``GeoJSON LineString`` geometry type.
591-
Please refer to `RFC 7946 <https://tools.ietf.org/html/rfc7946#section-3.1.4>`_ for details.
591+
Please refer to `RFC 7946 <https://tools.ietf.org/html/rfc7946#section-3.1.4>`__ for details.
592592
593593
All required parameters must be populated in order to send to Azure.
594594
@@ -674,7 +674,7 @@ def __init__(
674674

675675
class GeoJsonMultiLineString(GeoJsonObject, GeoJsonMultiLineStringData):
676676
"""A valid ``GeoJSON MultiLineString`` geometry type.
677-
Please refer to `RFC 7946 <https://tools.ietf.org/html/rfc7946#section-3.1.5>`_ for details.
677+
Please refer to `RFC 7946 <https://tools.ietf.org/html/rfc7946#section-3.1.5>`__ for details.
678678
679679
All required parameters must be populated in order to send to Azure.
680680
@@ -700,7 +700,7 @@ def __init__(
700700

701701
class GeoJsonMultiPoint(GeoJsonObject, GeoJsonMultiPointData):
702702
"""A valid ``GeoJSON MultiPoint`` geometry type.
703-
Please refer to `RFC 7946 <https://tools.ietf.org/html/rfc7946#section-3.1.3>`_ for details.
703+
Please refer to `RFC 7946 <https://tools.ietf.org/html/rfc7946#section-3.1.3>`__ for details.
704704
705705
All required parameters must be populated in order to send to Azure.
706706
@@ -726,7 +726,7 @@ def __init__(
726726

727727
class GeoJsonMultiPolygon(GeoJsonObject, GeoJsonMultiPolygonData):
728728
"""A valid ``GeoJSON MultiPolygon`` object type.
729-
Please refer to `RFC 7946 <https://tools.ietf.org/html/rfc7946#section-3.1.7>`_ for details.
729+
Please refer to `RFC 7946 <https://tools.ietf.org/html/rfc7946#section-3.1.7>`__ for details.
730730
731731
All required parameters must be populated in order to send to Azure.
732732
@@ -771,7 +771,7 @@ class GeoJsonPointData(msrest.serialization.Model):
771771
:param coordinates: Required. A ``Position`` is an array of numbers with two or more elements.
772772
The first two elements are *longitude* and *latitude*, precisely in that order.
773773
*Altitude/Elevation* is an optional third element. Please refer to `RFC 7946
774-
<https://tools.ietf.org/html/rfc7946#section-3.1.1>`_ for details.
774+
<https://tools.ietf.org/html/rfc7946#section-3.1.1>`__ for details.
775775
:type coordinates: LatLon
776776
"""
777777

@@ -795,14 +795,14 @@ def __init__(
795795

796796
class GeoJsonPoint(GeoJsonObject, GeoJsonPointData):
797797
"""A valid ``GeoJSON Point`` geometry type.
798-
Please refer to `RFC 7946 <https://tools.ietf.org/html/rfc7946#section-3.1.2>`_ for details.
798+
Please refer to `RFC 7946 <https://tools.ietf.org/html/rfc7946#section-3.1.2>`__ for details.
799799
800800
All required parameters must be populated in order to send to Azure.
801801
802802
:param coordinates: Required. A ``Position`` is an array of numbers with two or more elements.
803803
The first two elements are *longitude* and *latitude*, precisely in that order.
804804
*Altitude/Elevation* is an optional third element. Please refer to `RFC 7946
805-
<https://tools.ietf.org/html/rfc7946#section-3.1.1>`_ for details.
805+
<https://tools.ietf.org/html/rfc7946#section-3.1.1>`__ for details.
806806
:type coordinates: LatLon
807807
:param type: Required. Specifies the ``GeoJSON`` type. Must be one of the nine valid GeoJSON
808808
object types - Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon,
@@ -862,7 +862,7 @@ def __init__(
862862

863863
class GeoJsonPolygon(GeoJsonObject, GeoJsonPolygonData):
864864
"""A valid ``GeoJSON Polygon`` geometry type.
865-
Please refer to `RFC 7946 <https://tools.ietf.org/html/rfc7946#section-3.1.6>`_ for details.
865+
Please refer to `RFC 7946 <https://tools.ietf.org/html/rfc7946#section-3.1.6>`__ for details.
866866
867867
All required parameters must be populated in order to send to Azure.
868868

sdk/maps/azure-maps-route/pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ pyright = false
33
type_check_samples = false
44
verifytypes = false
55
ci_enabled = false
6+
strict_sphinx = true

0 commit comments

Comments
 (0)