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-5444 | diff --git a/moto/dynamodb/parsing/validators.py b/moto/dynamodb/parsing/validators.py
--- a/moto/dynamodb/parsing/validators.py
+++ b/moto/dynamodb/parsing/validators.py
@@ -341,8 +341,9 @@ def check_for_empty_string_key_value(self, node):
class UpdateHashRangeKeyValidator(DepthFirstTraverser):
- def __init__(... | diff --git a/test-data/unit/stubgen.test b/test-data/unit/stubgen.test
--- a/test-data/unit/stubgen.test
+++ b/test-data/unit/stubgen.test
@@ -319,6 +319,62 @@ class A:
def f(self, x) -> None: ...
def h(self) -> None: ...
+[case testFunctoolsCachedProperty]
+import functools
+
+class A:
+ @functools.cach... | 2023-06-14 19:16:03 | Implicit instantiation of exceptions with `raise`
**Bug Report**
<!--
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
-->
Python seems to treat `raise ValueError` the same way as... | python/mypy | fc1ef55adc7e0c886602149cfe9c1dc04645952b | 3.1 | [] | [
"mypy/test/testcheck.py::TypeCheckSuite::check-statements.test::testInvalidTupleValueAsExceptionType",
"mypy/test/testcheck.py::TypeCheckSuite::check-statements.test::testTupleValueAsExceptionType"
] | |
python__mypy-9663 | I can reproduce the issue. Apparently the literal type context is sometimes lost.
Some observations:
* If I replace all `Tuple[...]` types with `List[...]`, the issue persists.
* If I drop `Tuple[...]` and use `Union[str, Literal[1]]`, there is no issue.
* If I drop the union type context and use `Tuple[Literal[1... | diff --git a/moto/s3/models.py b/moto/s3/models.py
--- a/moto/s3/models.py
+++ b/moto/s3/models.py
@@ -12,7 +12,7 @@
import urllib.parse
from bisect import insort
-from typing import Optional
+from typing import Any, Dict, List, Optional
from importlib import reload
from moto.core import BaseBackend, BaseModel, B... | diff --git a/tests/test_dynamodb/test_dynamodb_query.py b/tests/test_dynamodb/test_dynamodb_query.py
--- a/tests/test_dynamodb/test_dynamodb_query.py
+++ b/tests/test_dynamodb/test_dynamodb_query.py
@@ -191,11 +191,61 @@ def test_query_pagination(table_name=None):
@pytest.mark.aws_verified
-@dynamodb_aws_verified(... | 2022-07-27 06:28:53 | logs.filter_log_events is only partially implemented
I suspect this is already well known, but mock_logs.filter_log_events is basically unimplemented.
Given the following code:
```
import boto3
import time
from moto import mock_logs
log_group_name = 'stuff'
log_stream_name = 'whatnot'
mock = mock_logs()... | getmoto/moto | 4d2ff58e502b52a908f41c18fbbe7cbb32997504 | 3.1 | [] | [
"tests/test_s3/test_s3_file_handles.py::TestS3FileHandleClosures::test_reset_other_backend"
] |
python__mypy-16215 | diff --git a/moto/secretsmanager/models.py b/moto/secretsmanager/models.py
--- a/moto/secretsmanager/models.py
+++ b/moto/secretsmanager/models.py
@@ -16,7 +16,7 @@
InvalidRequestException,
ClientError,
)
-from .utils import random_password, secret_arn, get_secret_name_from_arn
+from .utils import random_pas... | diff --git a/tests/test_awslambda/test_lambda.py b/tests/test_awslambda/test_lambda.py
--- a/tests/test_awslambda/test_lambda.py
+++ b/tests/test_awslambda/test_lambda.py
@@ -5,6 +5,7 @@
import sure # noqa # pylint: disable=unused-import
import pytest
+from botocore.exceptions import ClientError
from freezegun im... | 2022-10-19 20:48:26 | DynamoDB `get_item()` should raise `ClientError` for empty key
### What I expect to happen:
When an empty key is provided for a `get_item()` call, AWS's DynamoDB returns an error like this:
> botocore.exceptions.ClientError: An error occurred (ValidationException) when calling the GetItem operation: One or more param... | getmoto/moto | b180f0a015c625f2fb89a3330176d72b8701c0f9 | 4.2 | [
"tests/test_core/test_auth.py::test_s3_access_denied_with_denying_attached_group_policy",
"tests/test_core/test_auth.py::test_allowed_with_wildcard_action",
"tests/test_core/test_auth.py::test_access_denied_for_run_instances",
"tests/test_core/test_auth.py::test_access_denied_with_no_policy",
"tests/test_co... | [
"tests/test_iotdata/test_iotdata.py::test_create_named_shadows"
] | |
getmoto__moto-6802 | I'd recommend changing the issue topic to "Type alias for Annotated[some_type, non_type] not supported".
Because `A = Annotated[int, Positive]` works, and so does `x: Annotated[int, Positive()]`, but indeed `B = Annotated[int, Positive()]` does not.
I'd like to try fixing this bug 😊 Can I get some hints on where to... | diff --git a/moto/core/responses.py b/moto/core/responses.py
--- a/moto/core/responses.py
+++ b/moto/core/responses.py
@@ -725,25 +725,19 @@ def _get_map_prefix(self, param_prefix, key_end=".key", value_end=".value"):
return results
- def _parse_tag_specification(self, param_prefix):
- tags = sel... | 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... | 2023-08-17 07:53:29 | [1.4] Regression with AsyncGenerator
**Bug Report**
I can't seem to find a minimal reproducer, but whenever using watchfiles.awatch(), mypy produces the error:
`error: "Coroutine[Any, Any, AsyncGenerator[set[tuple[Change, str]], None]]" has no attribute "__aiter__" (not async iterable) [attr-defined]`
As can be... | getmoto/moto | cd35d486e7fdea0addea086b57ac2679c8d71544 | 4.2 | [
"tests/test_s3/test_s3_multipart.py::test_head_object_returns_part_count",
"tests/test_s3/test_s3_multipart.py::test_multipart_upload_should_return_part_10000",
"tests/test_s3/test_s3_multipart.py::test_complete_multipart_with_empty_partlist",
"tests/test_s3/test_s3_multipart.py::test_multipart_list_parts",
... | [
"tests/test_ecs/test_ecs_task_tags.py::test_add_tags_to_task",
"tests/test_ecs/test_ecs_task_tags.py::test_describe_tasks_include_tags"
] |
getmoto__moto-6019 | Thanks for raising this @joemulray - marking it as an enhancement to add this field. | diff --git a/mypy/checkexpr.py b/mypy/checkexpr.py
--- a/mypy/checkexpr.py
+++ b/mypy/checkexpr.py
@@ -1855,6 +1855,8 @@ def analyze_type_type_callee(self, item: ProperType, context: Context) -> Type:
# We support Type of namedtuples but not of tuples in general
if isinstance(item, TupleType) and tupl... | diff --git a/test-data/unit/check-modules.test b/test-data/unit/check-modules.test
--- a/test-data/unit/check-modules.test
+++ b/test-data/unit/check-modules.test
@@ -3121,26 +3121,28 @@ import google.cloud
from google.cloud import x
[case testErrorFromGoogleCloud]
-import google.cloud
+import google.cloud # E: Ca... | 2022-04-27 20:32:03 | Inconsistency between moto and boto when DynamoDb Query FilterExpression is empty
I have a conditional DynamoDB `Query` where, depending on the parameters, I may want to pass a `FilterExpression` or not.
Initially I wrote it like this:
```
filter_condition = Attr('permissions').contains('admin') if admins_only e... | getmoto/moto | 7e38877750c04abfd436e6ad98da23d6deca4e8f | 3.0 | [
"tests/test_events/test_event_pattern.py::test_event_pattern_with_prefix_event_filter",
"tests/test_events/test_event_pattern.py::test_event_pattern_with_single_numeric_event_filter[>=-1-should_match4-should_not_match4]",
"tests/test_events/test_event_pattern.py::test_event_pattern_with_single_numeric_event_fil... | [
"mypy/test/testcheck.py::TypeCheckSuite::check-recursive-types.test::testNoCrashOnRecursiveTupleFallback"
] |
python__mypy-11810 | Thanks for raising this @jritchie-nullable - marking it as a bug! | "diff --git a/mypy/typeops.py b/mypy/typeops.py\n--- a/mypy/typeops.py\n+++ b/mypy/typeops.py\n@@ -7(...TRUNCATED) | "diff --git a/test-data/unit/check-dataclasses.test b/test-data/unit/check-dataclasses.test\n--- a/t(...TRUNCATED) | 2023-03-03 17:37:11 | "[Feature request] SageMaker list and notebook instances\nCurrently Moto can create a fake SageMaker(...TRUNCATED) | getmoto/moto | e7156a76422de82342b4673d217004f384f427ed | 4.2 | ["mypy/test/testtransform.py::TransformSuite::testImplicitGenericTypeArgs","mypy/test/testtransform.(...TRUNCATED) | [
"tests/test_sns/test_application_boto3.py::test_publish_to_deleted_platform_endpoint"
] |
getmoto__moto-4972 | "diff --git a/mypy/checkmember.py b/mypy/checkmember.py\n--- a/mypy/checkmember.py\n+++ b/mypy/check(...TRUNCATED) | "diff --git a/test-data/unit/check-enum.test b/test-data/unit/check-enum.test\n--- a/test-data/unit/(...TRUNCATED) | 2022-03-25 14:29:15 | "CloudFormation: create_stack_instances returns a hardcoded OperationId\n`create_stack_instances` is(...TRUNCATED) | getmoto/moto | a75e30faae06c4e8b9073b28a2cf0b8e6c4c5715 | 0.820 | [] | [
"tests/test_core/test_mock_regions.py::test_use_unknown_region_from_env_but_allow_it__dynamo"
] | |
getmoto__moto-6121 | "https://github.com/spulec/moto/blob/ab045f5bebff4de84ac33053ef764efa32405829/moto/autoscaling/model(...TRUNCATED) | "diff --git a/mypy/messages.py b/mypy/messages.py\n--- a/mypy/messages.py\n+++ b/mypy/messages.py\n@(...TRUNCATED) | "diff --git a/tests/test_cloudfront/test_cloudfront_distributions.py b/tests/test_cloudfront/test_cl(...TRUNCATED) | 2023-06-01 18:19:54 | "Overriding definition such as type alias in a subclass causes a crash\nThe following program crashe(...TRUNCATED) | getmoto/moto | 2c0adaa9326745319c561a16bb090df609460acc | 4.2 | ["tests/test_ec2/test_vpc_service_configuration.py::test_describe_vpc_endpoint_service_configuration(...TRUNCATED) | [
"tests/test_s3/test_s3_select.py::TestS3Select::test_default_record_delimiter"
] |
getmoto__moto-5873 | "Hi @cln-m4rie, thanks for raising this.\r\n\r\nCan you share a reproducible test case that showcase(...TRUNCATED) | "diff --git a/moto/ec2/exceptions.py b/moto/ec2/exceptions.py\n--- a/moto/ec2/exceptions.py\n+++ b/m(...TRUNCATED) | "diff --git a/test-data/unit/check-classes.test b/test-data/unit/check-classes.test\n--- a/test-data(...TRUNCATED) | 2023-08-10 21:11:01 | "Firehose describe_delivery_stream does not give expected response to stream created with S3 backup\(...TRUNCATED) | python/mypy | 58c0a051b72731f093385cc7001b1f5c2abd2c18 | 4.1 | [
"mypy/test/testcheck.py::TypeCheckSuite::testReadingDescriptorWithoutDunderGet"
] | ["tests/test_cognitoidp/test_cognitoidp_exceptions.py::TestCognitoUserDeleter::test_authenticate_wit(...TRUNCATED) |
python__mypy-17293 | Thanks for raising this @lkw225657! | "diff --git a/moto/rds/models.py b/moto/rds/models.py\n--- a/moto/rds/models.py\n+++ b/moto/rds/mode(...TRUNCATED) | "diff --git a/tests/test_stepfunctions/parser/templates/services/dynamodb_invalid_task_token.json b/(...TRUNCATED) | 2023-01-02 18:00:15 | "DynamoDB: Using DELETE fails if attribute does not exist\nI believe there is a mismatch in behavior(...TRUNCATED) | getmoto/moto | b0e78140f5b5f74b0cb3da43e5becc48bbc29cff | 0.820 | [] | [
"tests/test_glue/test_datacatalog.py::test_delete_table_version"
] |
End of preview. Expand in Data Studio
edition_0084_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
- 8