Examples#
Index > LocationServiceMapsV2 > Examples
Auto-generated documentation for LocationServiceMapsV2 type annotations stubs module types-boto3-geo-maps.
Client#
Implicit type annotations#
Can be used with types-boto3[geo-maps]
package installed.
Write your LocationServiceMapsV2
code as usual,
type checking and code completion should work out of the box.
Client method usage example#
# LocationServiceMapsV2Client usage example
from boto3.session import Session
session = Session()
client = session.client("geo-maps") # (1)
result = client.get_glyphs() # (2)
- client: LocationServiceMapsV2Client
- result: GetGlyphsResponseTypeDef
Explicit type annotations#
With types-boto3-lite[geo-maps]
or a standalone types_boto3_geo_maps
package, you have to explicitly specify client: LocationServiceMapsV2Client
type annotation.
All other type annotations are optional, as types should be discovered automatically. However, these type annotations can be helpful in your functions and methods.
Client method usage example#
# LocationServiceMapsV2Client usage example with type annotations
from boto3.session import Session
from types_boto3_geo_maps.client import LocationServiceMapsV2Client
from types_boto3_geo_maps.type_defs import GetGlyphsResponseTypeDef
from types_boto3_geo_maps.type_defs import GetGlyphsRequestTypeDef
session = Session()
client: LocationServiceMapsV2Client = session.client("geo-maps")
kwargs: GetGlyphsRequestTypeDef = {...}
result: GetGlyphsResponseTypeDef = client.get_glyphs(**kwargs)