Nash Taylor
09/17/2024, 12:03 AMprefect_aws
typed? It doesn't seem to have a py.typed file.Alexander Azzam
09/17/2024, 12:32 AMNash Taylor
09/17/2024, 12:36 AMtouch .venv/lib/python3.12/site-packages/prefect_aws/py.typed
, but y'knowAlexander Azzam
09/17/2024, 12:40 AMNash Taylor
09/17/2024, 12:41 AMAlexander Azzam
09/17/2024, 12:45 AMAlexander Azzam
09/17/2024, 12:45 AMNash Taylor
09/17/2024, 12:48 AMfrom prefect import flow
is an error, because flow is "partially unknown"
It's due to some pretty ticky-tacky stuff, such as an unconstrained dict
type (no key or value type constraints), but it's all the same to strict-mode-pyrightNash Taylor
09/17/2024, 12:49 AMNash Taylor
09/17/2024, 12:49 AMNash Taylor
09/17/2024, 12:51 AMAlexander Azzam
09/17/2024, 12:54 AMNash Taylor
09/17/2024, 12:55 AMreportUnknownMemberType = false
and reportUnknownVariableType = false
, so not the end of the world. But I'll definitely keep an eye out for the day that I can remove those flagsAlexander Azzam
09/17/2024, 12:56 AMNash Taylor
09/17/2024, 3:22 AMuntyped_credentials = await AwsCredentials.load("my-credentials") # type: ignore
credentials = cast(AwsCredentials, untyped_credentials)
content = await s3_download(bucket="my-bucket", key="test.txt", aws_credentials=credentials)
I appreciate the sync/async compatibility but damn