Closed andrew-womeldorf closed 7 months ago
Hello! Thank you for the report.
Looks like it is because of a mistake in botocore
shapes. I will cross-check all dependent methods and stub this enum if it is safe to do.
boto3
docs are also affected: https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/ec2/client/run_instances.html#
Notice that 'Platform': 'Windows',
Oooo, that's irritating. I wonder if it's worthwhile to accept either casing
I created a bug report: https://github.com/boto/botocore/issues/3128
No, looks like it is always windows
, so I am going to temporarily stub this value until the bug is fixed.
@andrew-womeldorf fixed in mypy-boto3-ec2 1.34.50
. Please update and let me know if it works as it should.
Fixed! Thank you very much!
Describe the bug EC2
InstanceTypeDef
- the Platform field is typedNotRequired[Literal["Windows"]]
, which is so close to being correct it hurts that it's not 😂windows
, notWindows
. This matches what we're receiving in practice (the lowercased version).To Reproduce Steps to reproduce the behavior:
boto3-stubs[...]
mypy
/pyright
on the following code sampleActual output
Additional context Your OS,
boto3-stubs
installation method,boto3
version, etc.boto3-stubs 1.34.38