Examples
Index > ComprehendMedical > Examples
Auto-generated documentation for ComprehendMedical type annotations stubs module types-aiobotocore-comprehendmedical.
Client
Implicit type annotations
Can be used with types-aioboto3[comprehendmedical]
package installed.
Write your ComprehendMedical
code as usual,
type checking and code completion should work out of the box.
Client usage example
from aioboto3.session import Session
session = Session()
async with session.client("comprehendmedical") as client: # (1)
result = await client.describe_entities_detection_v2_job() # (2)
- client: ComprehendMedicalClient
- result: DescribeEntitiesDetectionV2JobResponseTypeDef
Explicit type annotations
With types-aioboto3-lite[comprehendmedical]
or a standalone types_aiobotocore_comprehendmedical
package, you have to explicitly specify
client: ComprehendMedicalClient
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 usage example
from aioboto3.session import Session
from types_aiobotocore_comprehendmedical.client import ComprehendMedicalClient
from types_aiobotocore_comprehendmedical.type_defs import DescribeEntitiesDetectionV2JobResponseTypeDef
from types_aiobotocore_comprehendmedical.type_defs import DescribeEntitiesDetectionV2JobRequestRequestTypeDef
session = Session()
client: ComprehendMedicalClient
async with session.client("comprehendmedical") as client: # (1)
kwargs: DescribeEntitiesDetectionV2JobRequestRequestTypeDef = {...} # (2)
result: DescribeEntitiesDetectionV2JobResponseTypeDef = await client.describe_entities_detection_v2_job(**kwargs) # (3)