instance_id string | hints_text string | patch string | test_patch string | created_at string | problem_statement string | repo string | base_commit string | version string | PASS_TO_PASS list | FAIL_TO_PASS list |
|---|---|---|---|---|---|---|---|---|---|---|
getmoto__moto-5516 | Hi @AngeloGC, happy to hear that Moto is useful for you!
Marking it as an enhancement to support this. | diff --git a/mypy/checker.py b/mypy/checker.py
--- a/mypy/checker.py
+++ b/mypy/checker.py
@@ -1076,6 +1076,8 @@ def check_func_item(
if name == "__exit__":
self.check__exit__return_type(defn)
+ # TODO: the following logic should move to the dataclasses plugin
+ # https://github.c... | diff --git a/test-data/unit/check-literal.test b/test-data/unit/check-literal.test
--- a/test-data/unit/check-literal.test
+++ b/test-data/unit/check-literal.test
@@ -1872,8 +1872,9 @@ reveal_type(tup2[idx3]) # N: Revealed type is "__main__.D"
reveal_type(tup2[idx4]) # N: Revealed type is "__main__.E"
rev... | 2023-06-15T22:15:09Z | Crash when analysing qiskit
**Crash Report**
Running mypy on a library where typing has recently been added causes a crash while analyzing this line:
https://github.com/Qiskit/qiskit-terra/blob/main/qiskit/circuit/library/blueprintcircuit.py#L72
**Traceback**
```
/q/qiskit-terra/qiskit/circuit/library/blue... | getmoto/moto | e6818c3f1d3e8f552e5de736f68029b4efd1994f | 1.4 | [
"tests/test_ec2/test_fleets.py::test_request_fleet_using_launch_template_config__name[prioritized-capacity-optimized]",
"tests/test_ec2/test_fleets.py::test_request_fleet_using_launch_template_config__name[prioritized-diversified]",
"tests/test_ec2/test_fleets.py::test_request_fleet_using_launch_template_config... | [
"mypy/test/testpythoneval.py::PythonEvaluationSuite::testTypingExtensionsOrderedDictAlias"
] |
getmoto__moto-5560 | Having the same issue on my code, I really don't understand where and why, can someone shed some light?
mentioned in alembics repo: https://github.com/sqlalchemy/alembic/issues/897
I've tried to debug this a bit on alembic side: https://github.com/sqlalchemy/alembic/issues/897#issuecomment-913855198
It seems a cir... | diff --git a/moto/rds/models.py b/moto/rds/models.py
--- a/moto/rds/models.py
+++ b/moto/rds/models.py
@@ -506,7 +506,7 @@ def to_xml(self):
</VpcSecurityGroupMembership>
{% endfor %}
</VpcSecurityGroups>
- <DBClusterIdentifier>{{ database.db_cluster_identif... | diff --git a/tests/terraformtests/terraform-tests.success.txt b/tests/terraformtests/terraform-tests.success.txt
--- a/tests/terraformtests/terraform-tests.success.txt
+++ b/tests/terraformtests/terraform-tests.success.txt
@@ -140,6 +140,7 @@ kms:
lambda:
- TestAccLambdaAlias_
- TestAccLambdaLayerVersion_
+ - T... | 2024-02-23 20:49:34 | Inconsistent `us-west-1` availability zones
`us-west-1` only has [2 availability zones accessible to customers](https://aws.amazon.com/about-aws/global-infrastructure/regions_az/). The [mapping of availability zone name to availability zone ID](https://docs.aws.amazon.com/ram/latest/userguide/working-with-az-ids.html) ... | python/mypy | d37c2be0f7a2002a0a8c160622d937518f902cc7 | 4.1 | [
"tests/test_dynamodb/exceptions/test_key_length_exceptions.py::test_item_add_long_string_range_key_exception",
"tests/test_dynamodb/exceptions/test_key_length_exceptions.py::test_update_item_with_long_string_hash_key_exception",
"tests/test_dynamodb/exceptions/test_key_length_exceptions.py::test_put_long_string... | [
"mypy/test/testcheck.py::TypeCheckSuite::testAnnotatedSecondParamNonType"
] |
getmoto__moto-5478 | Also, when used as a var-keyword param, TypedDict doesn't work as I'd expect it to:
```python
class LoginParams(TypedDict):
emailAddress: str
password: str
async def resolve_login(
root: None, info: GraphQLResolveInfo, ctx: Context, **params: LoginParams
) -> typing.Optional[UserType]:
user ... | diff --git a/moto/autoscaling/models.py b/moto/autoscaling/models.py
--- a/moto/autoscaling/models.py
+++ b/moto/autoscaling/models.py
@@ -368,6 +368,8 @@ def __init__(
autoscaling_backend,
ec2_backend,
tags,
+ mixed_instance_policy,
+ capacity_rebalance,
new_instances_... | diff --git a/tests/test_dynamodb/exceptions/test_dynamodb_exceptions.py b/tests/test_dynamodb/exceptions/test_dynamodb_exceptions.py
--- a/tests/test_dynamodb/exceptions/test_dynamodb_exceptions.py
+++ b/tests/test_dynamodb/exceptions/test_dynamodb_exceptions.py
@@ -599,3 +599,29 @@ def test_put_item_empty_set():
... | 2023-04-04T12:42:40Z | Position of double-starred kwargs affects the type errors when instantiating subclasses attr objects
<!--
Note: If the problem you are reporting is about a specific library function, then the typeshed tracker is better suited
for this report: https://github.com/python/typeshed/issues
-->
## 🐛 Bug Report
I'm n... | getmoto/moto | 4a9c1e95457f253f87ef5db970ad8d59209c4715 | 4.0 | [] | [
"tests/test_resourcegroupstaggingapi/test_resourcegroupstagging_logs.py::TestLogsTagging::test_tag_resources_logs",
"tests/test_resourcegroupstaggingapi/test_resourcegroupstagging_logs.py::TestLogsTagging::test_get_resources_logs",
"tests/test_logs/test_logs_tags.py::test_log_groups_tags",
"tests/test_logs/te... |
getmoto__moto-6332 | Thanks for raising this @Maxi-Mega. It looks like there's a bug in Moto where we do not correctly build the Signature for requests with a querystring, hence the exception. Will raise a PR shortly to fix this. | diff --git a/moto/acm/models.py b/moto/acm/models.py
--- a/moto/acm/models.py
+++ b/moto/acm/models.py
@@ -343,24 +343,22 @@ def describe(self) -> Dict[str, Any]:
domain_names = set(sans + [self.common_name])
validation_options = []
- if self.status == "PENDING_VALIDATION":
- for s... | diff --git a/tests/test_scheduler/test_scheduler.py b/tests/test_scheduler/test_scheduler.py
--- a/tests/test_scheduler/test_scheduler.py
+++ b/tests/test_scheduler/test_scheduler.py
@@ -144,6 +144,26 @@ def test_update_schedule(extra_kwargs):
assert schedule["CreationDate"] != schedule["LastModificationDate"]
... | 2022-05-21 22:15:00 | Implement CloudFront list_invalidations
**How to reproduce the issue**
Call `list_invalidations()` on the `cloudfront` client.
**What I expected to happen**
Get a list of invalidations for the specified CloudFront distribution.
**What actually happens**
```moto/core/botocore_stubber.py:60: TypeError: can... | python/mypy | 68b3b27c2fc47cc01f16d98e7e7d944ad5c0c6be | 4.1 | [
"tests/test_iot/test_iot_thing_groups.py::test_thing_group_update_with_no_previous_attributes_with_merge",
"tests/test_iot/test_iot_thing_groups.py::test_thing_group_updated_with_empty_attributes_no_merge_no_attributes_added",
"tests/test_iot/test_iot_thing_groups.py::test_thing_group_updates_description",
"t... | [
"mypy/test/testcheck.py::TypeCheckSuite::check-classes.test::testConstructorJoinsWithCustomMetaclass"
] |
python__mypy-10389 | diff --git a/moto/ec2/models/availability_zones_and_regions.py b/moto/ec2/models/availability_zones_and_regions.py
--- a/moto/ec2/models/availability_zones_and_regions.py
+++ b/moto/ec2/models/availability_zones_and_regions.py
@@ -238,8 +238,8 @@ class RegionsAndZonesBackend:
Zone(region_name="us-east-2", ... | diff --git a/test-data/unit/check-type-aliases.test b/test-data/unit/check-type-aliases.test
--- a/test-data/unit/check-type-aliases.test
+++ b/test-data/unit/check-type-aliases.test
@@ -50,6 +50,14 @@ def f(x: A) -> None:
f(1)
f('x')
+[case testNoReturnTypeAlias]
+# https://github.com/python/mypy/issues/11903
+fro... | 2022-02-27 20:30:00 | Expose logic of get_amis.py in moto as a test.utils.something
Would you guys be opposed to making this code
https://github.com/spulec/moto/blob/871591f7f17458c10ce039d6e2f36abe3430fec5/scripts/get_amis.py#L47-L65
a utility function somewhere in moto so that users who want/need to create their own MOTO_AMIS_PATH c... | getmoto/moto | 28d57b13ab5ea765728bde534eda2877f8d92b4b | 4.2 | [
"mypy/test/testcheck.py::TypeCheckSuite::check-type-aliases.test::testImportUnionAlias"
] | [
"tests/test_cloudwatch/test_cloudwatch_tags.py::test_tag_resource_on_resource_without_tags"
] | |
getmoto__moto-6854 | diff --git a/moto/kinesis/models.py b/moto/kinesis/models.py
--- a/moto/kinesis/models.py
+++ b/moto/kinesis/models.py
@@ -4,6 +4,7 @@
import itertools
from operator import attrgetter
+from typing import Any, Dict, List, Optional, Tuple
from moto.core import BaseBackend, BackendDict, BaseModel, CloudFormationMod... | diff --git a/test-data/unit/check-attr.test b/test-data/unit/check-attr.test
--- a/test-data/unit/check-attr.test
+++ b/test-data/unit/check-attr.test
@@ -1970,6 +1970,81 @@ reveal_type(ret) # N: Revealed type is "Any"
[typing fixtures/typing-medium.pyi]
+[case testEvolveGeneric]
+import attrs
+from typing import... | 2022-05-01 11:50:02 | Cancel spot fleet request without terminate incorrectly removes the fleet entirely
https://github.com/spulec/moto/blob/c301f8822c71a402d14b380865aa45b07e880ebd/moto/ec2/models.py#L6549
I'm working with localstack on moto and trying to simulate a flow of:
- create spot fleet with X instances
- cancel the fleet wi... | getmoto/moto | 8a8eaff5476a7e80b10c9255eb23a4c094337a71 | 1.4 | [
"tests/test_cloudformation/test_cloudformation_stack_crud_boto3.py::test_describe_stack_with_special_chars",
"tests/test_cloudformation/test_cloudformation_stack_crud_boto3.py::test_get_template_summary",
"tests/test_cloudformation/test_cloudformation_stack_crud_boto3.py::test_create_change_set_from_s3_url",
... | [
"tests/test_ec2/test_vpc_service_configuration.py::test_create_vpc_endpoint_service_configuration_with_options"
] | |
getmoto__moto-7119 | I'm confused by this, as when trying to expose this problem in a fork, I don't see any issues. You even seem to have a test to cover this case!
Interesting. Can you reproduce it with a later version, either 3.1.18 or even 4.0.0.dev5? | diff --git a/moto/cognitoidp/exceptions.py b/moto/cognitoidp/exceptions.py
--- a/moto/cognitoidp/exceptions.py
+++ b/moto/cognitoidp/exceptions.py
@@ -2,6 +2,13 @@
from typing import Optional
+class AliasExistsException(JsonRESTError):
+ def __init__(self) -> None:
+ super().__init__(
+ "Alias... | diff --git a/tests/test_route53/test_route53.py b/tests/test_route53/test_route53.py
--- a/tests/test_route53/test_route53.py
+++ b/tests/test_route53/test_route53.py
@@ -5,8 +5,9 @@
import botocore
import pytest
+import requests
-from moto import mock_ec2, mock_route53
+from moto import mock_ec2, mock_route53, s... | 2024-02-11T16:34:48Z | DynamoDb2 create_table not validate ProvisionedThroughput parameter
Hello,
When I call create_table from dynamodb client, if a pass `BillingMode='PROVISIONED'` the parameter `ProvisionedThroughput ` is required, as you can see in boto3 documentation: [Boto3 DynamoDB create_table](https://boto3.amazonaws.com/v1/documen... | getmoto/moto | b96eafb3c3e4c2e40c4ca62a3b555a51296cc6e3 | 5.0 | [
"mypy/test/testcheck.py::TypeCheckSuite::check-enum.test::testEnumReusedKeys",
"mypy/test/testcheck.py::TypeCheckSuite::check-enum.test::testEnumReusedKeysOverlapWithLocalVar"
] | [
"tests/test_sagemaker/test_sagemaker_notebooks.py::test_list_notebook_instances",
"tests/test_sagemaker/test_sagemaker_notebooks.py::test_notebook_instance_lifecycle"
] |
python__mypy-16503 | As a workaround for others (given to me by the experts) you can ignore this issue until it's fixed as such:
```
__path__.append(...) # type: ignore # mypy issue #1422
```
Shouldn't be too hard to fix?
If it helps a minimal reproducible example can be found below (I wrote one before discovering this issue),
A pa... | diff --git a/moto/s3/models.py b/moto/s3/models.py
--- a/moto/s3/models.py
+++ b/moto/s3/models.py
@@ -2524,7 +2524,7 @@ def __init__(
# Maps bucket names to account IDs. This is used to locate the exact S3Backend
# holding the bucket and to maintain the common bucket namespace.
- self.bucket... | diff --git a/tests/test_dynamodb/exceptions/test_dynamodb_exceptions.py b/tests/test_dynamodb/exceptions/test_dynamodb_exceptions.py
--- a/tests/test_dynamodb/exceptions/test_dynamodb_exceptions.py
+++ b/tests/test_dynamodb/exceptions/test_dynamodb_exceptions.py
@@ -978,3 +978,75 @@ def test_gsi_key_cannot_be_empty():
... | 2023-01-24 23:37:57 | Call `GetId` on Cognito Identity when Access Control is available
Authorization may not be included in some Cognito operations.
Not including Authorization results in an error when Access control is enabled.
moto server version: 4.2.14
stack trace.
```
Error on request:
Traceback (most recent call last):
F... | getmoto/moto | cfd01d9f7fdceb5eb8e367e8f1a6a1efb5ede38c | 4.0 | [
"mypy/test/testcheck.py::TypeCheckSuite::check-dataclasses.test::testPostInitCorrectSignature"
] | [
"tests/test_core/test_moto_api.py::test_overwriting_s3_object_still_returns_data"
] |
getmoto__moto-7208 | Looks like the logic is to ignore `__slots__` if anyone in the MRO doesn't have it:
https://github.com/python/mypy/blob/6f650cff9ab21f81069e0ae30c92eae94219ea63/mypy/semanal.py#L4645-L4648 | diff --git a/moto/ec2/models/route_tables.py b/moto/ec2/models/route_tables.py
--- a/moto/ec2/models/route_tables.py
+++ b/moto/ec2/models/route_tables.py
@@ -76,6 +76,12 @@ def get_filter_value(self, filter_name):
return self.associations.keys()
elif filter_name == "association.subnet-id":
... | diff --git a/tests/test_autoscaling/test_autoscaling.py b/tests/test_autoscaling/test_autoscaling.py
--- a/tests/test_autoscaling/test_autoscaling.py
+++ b/tests/test_autoscaling/test_autoscaling.py
@@ -148,7 +148,7 @@ def test_create_auto_scaling_from_template_version__latest():
"LaunchTemplateName": laun... | 2023-10-26 18:28:49 | CloudWatchLog's put_subscription_filter() does not accept kinesis data stream destination
How to reproduce: Write a test which puts a subscription filter to a cloudwatch loggroup, mocking the loggroup name, the kinesis data stream, and the role arn. When the test calls the boto3 method put_subscription_filter(), the f... | python/mypy | f54c3096b7d328dc59dd85af3a8ba28739dcfed0 | 3.1 | [
"tests/test_dynamodb/test_dynamodb_executor.py::test_execution_of_if_not_exists_not_existing_value",
"tests/test_dynamodb/test_dynamodb.py::test_remove_list_index__remove_existing_nested_index",
"tests/test_dynamodb/test_dynamodb.py::test_basic_projection_expressions_using_query_with_attr_expression_names",
"... | [
"tests/test_cognitoidp/test_cognitoidp_exceptions.py::TestCognitoUserDeleter::test_authenticate_with_signed_out_user"
] |
python__mypy-12064 | Thanks for raising this @tekumara - marking it as an enhancement to add this attribute. | diff --git a/moto/eks/models.py b/moto/eks/models.py
--- a/moto/eks/models.py
+++ b/moto/eks/models.py
@@ -113,7 +113,7 @@ def __init__(
encryption_config=None,
):
if encryption_config is None:
- encryption_config = dict()
+ encryption_config = []
if tags is None:
... | diff --git a/test-data/unit/check-literal.test b/test-data/unit/check-literal.test
--- a/test-data/unit/check-literal.test
+++ b/test-data/unit/check-literal.test
@@ -2227,7 +2227,7 @@ d[c_key] # E: TypedDict "Outer" has no key 'c'
reveal_type(d.get(a_key, u)) # N: Revealed type is 'Union[built... | 2022-03-11 21:54:10 | False positives for "Attempted to reuse member name in Enum"
<!--
If you're new to mypy and you're not sure whether what you're experiencing is a mypy bug, please see the "Question and Help" form
instead.
Please also consider:
- checking our common issues page: https://mypy.readthedocs.io/en/stable/common... | getmoto/moto | adeaea7c707018aa755a341820530e876cf8d542 | 1.2 | [
"mypy/test/teststubgen.py::StubgenPythonSuite::stubgen.test::testTypeddictKeywordSyntax"
] | [
"mypy/test/testcheck.py::TypeCheckSuite::check-protocols.test::testProtocolImportNotMember"
] |
getmoto__moto-5899 | diff --git a/mypy/build.py b/mypy/build.py
--- a/mypy/build.py
+++ b/mypy/build.py
@@ -55,7 +55,6 @@
DecodeError,
decode_python_encoding,
get_mypy_comments,
- get_top_two_prefixes,
hash_digest,
is_stub_package_file,
is_sub_path,
@@ -91,12 +90,7 @@
from mypy.plugins.default import Defau... | diff --git a/tests/test_ec2/test_availability_zones_and_regions.py b/tests/test_ec2/test_availability_zones_and_regions.py
--- a/tests/test_ec2/test_availability_zones_and_regions.py
+++ b/tests/test_ec2/test_availability_zones_and_regions.py
@@ -38,6 +38,45 @@ def test_boto3_availability_zones():
assert r... | 2024-04-04 19:11:15 | CloudFront Update Distribution Expecting Something That Isn't Given Via Boto3
# CloudFront Update Distribution Expecting Something That Isn't Given Via Boto3
# Environment:
```
pip list moto
Package Version
------------------------- ---------
atomicwrites 1.4.1
attrs ... | python/mypy | 8b6d21373f44959d8aa194723e871e5468ad5c71 | 0.920 | [] | [
"tests/test_dynamodb/test_server.py::test_table_list",
"tests/test_dynamodb/test_dynamodb.py::test_describe_missing_table_boto3"
] |
End of preview. Expand in Data Studio
edition_0118_SWE-Gym-SWE-Gym-readymade
A Readymade by TheFactoryX
Original Dataset
Process
This dataset is a "readymade" - inspired by Marcel Duchamp's concept of taking everyday objects and recontextualizing them as art.
What we did:
- Selected the original dataset from Hugging Face
- Shuffled each column independently
- Destroyed all row-wise relationships
- Preserved structure, removed meaning
The result: Same data. Wrong order. New meaning. No meaning.
Purpose
This is art. This is not useful. This is the point.
Column relationships have been completely destroyed. The data maintains its types and values, but all semantic meaning has been removed.
Part of the Readymades project by TheFactoryX.
"I am a machine." — Andy Warhol
- Downloads last month
- 5