Dataset Viewer
Auto-converted to Parquet Duplicate
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
Interesting - looks like boto3 doesn't quite know how to handle the response, if the XML coming from AWS is invalid. It'd be interesting to see how other SDK's/the CLI handle this. I'll mark it as an enhancement to copy this behaviour. I suspect this is a bug in the API spec itself. The docs don't mention a minimum li...
diff --git a/mypy/dmypy_server.py b/mypy/dmypy_server.py --- a/mypy/dmypy_server.py +++ b/mypy/dmypy_server.py @@ -857,6 +857,21 @@ def _find_changed( assert path removed.append((source.module, path)) + # Always add modules that were (re-)added, since they may be detected as not chang...
diff --git a/test-data/unit/check-selftype.test b/test-data/unit/check-selftype.test --- a/test-data/unit/check-selftype.test +++ b/test-data/unit/check-selftype.test @@ -802,6 +802,37 @@ class Bad(metaclass=Meta): Good.do_x() Bad.do_x() # E: Invalid self argument "Type[Bad]" to attribute function "do_x" with type "...
2023-11-24 19:35:11
Missing accept-ranges from mocked S3 service API response moto version 4.1.5 - botocore 1.29.96 - boto3 1.26.87 - s3resumable 0.0.3 Am using S3Resumable to handle my file downloads even when interrupted. Long story short, I am able to mock s3 but it seems the output it generates when getting an object from the ...
getmoto/moto
159f382fe39f96098f92b12ef6241a44c45f3804
0.820
[ "mypy/test/testcheck.py::TypeCheckSuite::check-overloading.test::testOverloadFlagsPossibleMatches" ]
[ "tests/test_timestreamwrite/test_timestreamwrite_table.py::test_write_records" ]
python__mypy-11417
Hi, This would be my first time contributing to this repo. Can I take this up ? Sure, give it a try. Read CONTRIBUTING.md to get started. I took a look at this issue recently. The problem is reproduced not only on "init" but for empty function as well. With next samples: ```python a = 2 a.__pow__() class ...
diff --git a/mypy/checker.py b/mypy/checker.py --- a/mypy/checker.py +++ b/mypy/checker.py @@ -4473,14 +4473,14 @@ def has_no_custom_eq_checks(t: Type) -> bool: if_map = {} else_map = {} - if_assignment_map, else_assignment_map = self.find_isinstance_check_helper(node.target) + ...
diff --git a/tests/test_core/test_moto_api.py b/tests/test_core/test_moto_api.py --- a/tests/test_core/test_moto_api.py +++ b/tests/test_core/test_moto_api.py @@ -14,6 +14,7 @@ if settings.TEST_SERVER_MODE else "http://motoapi.amazonaws.com" ) +data_url = f"{base_url}/moto-api/data.json" @mock_sqs @@ -3...
2022-07-29 15:35:23
Unexpected "need type type annotation" with contextmanager This generates a false positive in `g`: ```py from typing import Generator, Callable, Iterator, TypeVar, ContextManager, Any from typing_extensions import ParamSpec from nonexistent import deco # type: ignore _T = TypeVar("_T") _P = ParamSpec("_P"...
getmoto/moto
37cb6cee94ffe294e7d02c7d252bcfb252179177
4.1
[ "tests/test_dynamodb/test_dynamodb_expression_tokenizer.py::test_expression_tokenizer_leading_underscore_in_attribute_value_expression", "tests/test_dynamodb/test_dynamodb_expression_tokenizer.py::test_expression_tokenizer_list_index_surrounded_with_whitespace", "tests/test_dynamodb/test_dynamodb_expression_tok...
[ "tests/test_ec2/test_fleets.py::test_delete_fleet" ]
python__mypy-11213
This line might be the root cause: https://github.com/python/typeshed/blob/59408d9c9cd1d25e4083707893a1b2f2965c2c0a/stdlib/typing_extensions.pyi#L72-L74 I will try to fix it. Yes, this code fixes this issue: ```python if sys.version_info >= (3, 8): from typing import OrderedDict as OrderedDict else: ...
diff --git a/moto/dynamodb/models/table.py b/moto/dynamodb/models/table.py --- a/moto/dynamodb/models/table.py +++ b/moto/dynamodb/models/table.py @@ -251,7 +251,7 @@ def __init__( if elem["KeyType"] == "HASH": self.hash_key_attr = elem["AttributeName"] self.hash_key_type ...
diff --git a/tests/test_stepfunctions/parser/__init__.py b/tests/test_stepfunctions/parser/__init__.py --- a/tests/test_stepfunctions/parser/__init__.py +++ b/tests/test_stepfunctions/parser/__init__.py @@ -76,7 +76,7 @@ def verify_execution_result( ) for _ in range(10): execution = client.describe_e...
2022-06-22 22:14:44
NotImplementedError: Filter dicts have not been implemented in Moto for 'key-name' I am seeing this when I try to use the `describe_instances` ec2 function and filter on `key-name`. Quick snippet of code that produces the error: ``` import boto3 import moto mock_aws_account = moto.mock_ec2() mock_aws_accoun...
python/mypy
2d8ad8ef240df262be80d9359e9f5892ea1f9ad3
0.940
[ "tests/test_ec2/test_transit_gateway.py::test_search_transit_gateway_routes_by_state", "tests/test_ec2/test_transit_gateway.py::test_describe_transit_gateway_by_id", "tests/test_ec2/test_transit_gateway.py::test_create_transit_gateway_route", "tests/test_ec2/test_transit_gateway.py::test_create_transit_gatewa...
[ "tests/test_ec2/test_instances.py::test_create_instance_from_launch_template__process_tags" ]
python__mypy-15353
Thanks for raising this @SeanBickle. The instance-type-offerings are a direct dump from AWS - strange that they are using `1b` and `1c`, but not `1a`. Marking it as a bug to fix our hardcoded zones to also use `1b` and `1c` though.
diff --git a/moto/cognitoidp/models.py b/moto/cognitoidp/models.py --- a/moto/cognitoidp/models.py +++ b/moto/cognitoidp/models.py @@ -578,6 +578,14 @@ def get_user_extra_data_by_client_id(self, client_id, username): extra_data.update({attribute[0]["Name"]: attribute[0]["Value"]}) return e...
diff --git a/test-data/unit/check-recursive-types.test b/test-data/unit/check-recursive-types.test --- a/test-data/unit/check-recursive-types.test +++ b/test-data/unit/check-recursive-types.test @@ -826,3 +826,14 @@ z = z x = y # E: Incompatible types in assignment (expression has type "L", variable has type "K") z ...
2022-11-30 21:13:44
[Terraform] Creation of Guardduty GetDetector return 404 Hello, i tried to use moto as mock server for terraform code testing, during guardduty creation i got in debug mode error like **Repro steps**: Start moto server Configure AWS provider for using custom endpoint Create simple aws_guardduty_detector resourc...
python/mypy
4aa5e4388d4a9a7d4a95c265552e2d4b4c1ba376
0.960
[ "mypy/test/testcheck.py::TypeCheckSuite::testSimpleProtocolOneAbstractMethod", "mypy/test/testcheck.py::TypeCheckSuite::testClassLevelImport", "mypy/test/testcheck.py::TypeCheckSuite::testGetattrWithGetitem", "mypy/test/testcheck.py::TypeCheckSuite::testDisallowUntypedDecoratorsNonCallableInstance", "mypy/t...
[ "tests/test_ec2/test_hosts.py::test_describe_hosts_with_instancefamily" ]
python__mypy-5617
diff --git a/mypy/meet.py b/mypy/meet.py --- a/mypy/meet.py +++ b/mypy/meet.py @@ -161,10 +161,6 @@ def _is_overlapping_types(left: Type, right: Type) -> bool: if isinstance(left, illegal_types) or isinstance(right, illegal_types): return True - # 'Any' may or may not be overlapping with the other ty...
diff --git a/tests/test_iot/test_iot_things.py b/tests/test_iot/test_iot_things.py --- a/tests/test_iot/test_iot_things.py +++ b/tests/test_iot/test_iot_things.py @@ -11,12 +11,13 @@ def test_create_thing(): thing = client.create_thing(thingName=name) assert thing["thingName"] == name - assert "thingArn"...
2023-09-01 18:25:54
Several crashes on pyright test suite https://github.com/microsoft/pyright/tree/main/packages/pyright-internal/src/tests/samples assignment1.py assignmentExpr4.py super1.py unpack1.py The crash on unpack1.py is probably most worth looking into ``` ~/dev/pyright/packages/pyright-internal/src/tests/samples m...
python/mypy
55c589072fc88363fdde9ae8656909f8f24dd13f
1.5
[ "mypy/test/testcheck.py::TypeCheckSuite::check-selftype.test::testSelfTypePropertyUnion" ]
[ "mypy/test/testcheck.py::TypeCheckSuite::check-dataclasses.test::testDataclassesAnyInherit" ]
getmoto__moto-5406
diff --git a/moto/firehose/models.py b/moto/firehose/models.py --- a/moto/firehose/models.py +++ b/moto/firehose/models.py @@ -1,10 +1,6 @@ """FirehoseBackend class with methods for supported APIs. Incomplete list of unfinished items: - - The create_delivery_stream() argument - DeliveryStreamEncryptionConfigura...
diff --git a/tests/test_secretsmanager/test_secretsmanager.py b/tests/test_secretsmanager/test_secretsmanager.py --- a/tests/test_secretsmanager/test_secretsmanager.py +++ b/tests/test_secretsmanager/test_secretsmanager.py @@ -1346,7 +1346,11 @@ def test_update_secret(pass_arn): secret = conn.get_secret_value(Secr...
2023-01-30 23:06:51
"Bucket does not exist" thrown from inherited tearDown method in moto 3.0.1 I have this code: ```python import unittest import boto3 from moto import mock_s3 @mock_s3 class BaseTest(unittest.TestCase): def setUp(self) -> None: self.s3 = boto3.resource('s3') self.test_bucket = self.s...
getmoto/moto
56d11d841cbe1b5b6b0242f276b88b82119851e1
4.2
[ "tests/test_guardduty/test_guardduty.py::test_create_detector", "tests/test_guardduty/test_guardduty.py::test_create_detector_with_minimal_params", "tests/test_guardduty/test_guardduty.py::test_list_detectors_initial", "tests/test_guardduty/test_guardduty.py::test_list_detectors" ]
[ "mypy/test/testcheck.py::TypeCheckSuite::testKeywordUnpackWithDifferentTypes", "mypy/test/testcheck.py::TypeCheckSuite::testSubtypingIterableUnpacking1", "mypy/test/testcheck.py::TypeCheckSuite::testSubtypingIterableUnpacking2" ]
getmoto__moto-7328
Thanks for raising this, and for providing the repro, @Outrun207! Will raise a bugfix for this shortly.
diff --git a/moto/batch/responses.py b/moto/batch/responses.py --- a/moto/batch/responses.py +++ b/moto/batch/responses.py @@ -1,4 +1,5 @@ from moto.core.responses import BaseResponse +from moto.utilities.aws_headers import amzn_request_id from .models import batch_backends, BatchBackend from urllib.parse import url...
diff --git a/tests/test_s3/test_s3_file_handles.py b/tests/test_s3/test_s3_file_handles.py --- a/tests/test_s3/test_s3_file_handles.py +++ b/tests/test_s3/test_s3_file_handles.py @@ -56,6 +56,11 @@ def test_delete_large_file(self): def test_overwriting_file(self): self.s3.put_object("my-bucket", "my-key",...
2024-05-25T07:03:38Z
When creating ec2 instances from launch template via run_instances, the instances aren't tagged I'm using moto in pytest. I have created a launch template using `create_launch_template`. This template is created with `TagSpecifications` for instance and volume. Upon using `run_instances` to create new instances base...
getmoto/moto
cfd01d9f7fdceb5eb8e367e8f1a6a1efb5ede38c
3.1
[ "tests/test_dynamodb/exceptions/test_dynamodb_exceptions.py::test_query_gsi_with_wrong_key_attribute_names_throws_exception", "tests/test_dynamodb/exceptions/test_dynamodb_exceptions.py::test_hash_key_can_only_use_equals_operations[<]", "tests/test_dynamodb/exceptions/test_dynamodb_exceptions.py::test_creating_...
[ "mypy/test/testcheck.py::TypeCheckSuite::testDataclassUntypedGenericInheritance", "mypy/test/testcheck.py::TypeCheckSuite::testDataclassMultiGenericInheritance", "mypy/test/testcheck.py::TypeCheckSuite::testDataclassGenericInheritance" ]
getmoto__moto-5940
Hi @romanilchyshynb, that attribute is indeed not supported at the moment. > Also, Is it hard to add it? That depends - what is your usecase? If you just want the attribute to show up in the `run_instances`/`describe_instances`-response, that should be easy. Thanks for quick response! I'll try to persist placeme...
diff --git a/moto/core/botocore_stubber.py b/moto/core/botocore_stubber.py --- a/moto/core/botocore_stubber.py +++ b/moto/core/botocore_stubber.py @@ -43,18 +43,13 @@ def __call__(self, event_name: str, request: Any, **kwargs: Any) -> AWSResponse: response = None response_callback = None - fo...
diff --git a/tests/test_sns/test_topics_boto3.py b/tests/test_sns/test_topics_boto3.py --- a/tests/test_sns/test_topics_boto3.py +++ b/tests/test_sns/test_topics_boto3.py @@ -1,7 +1,8 @@ import boto3 import json +import pytest -# import sure # noqa # pylint: disable=unused-import +import sure # noqa # pylint: dis...
2023-08-22T08:27:46Z
lru_cache annotation doesn't work as a property So I originally reported it in [typeshed/#2659](https://github.com/python/typeshed/issues/2569) but was told this can't be fixed there and it is mypy limitation so repporting it here. ---- I have following code: ```python #! /usr/bin/env python import time f...
getmoto/moto
6d41ad72e09b49f61e54d47880f8a65026e7c0e4
4.1
[ "tests/test_rds/test_rds_export_tasks.py::test_describe_export_tasks_fails_unknown_task", "tests/test_rds/test_rds_export_tasks.py::test_cancel_export_task_fails_unknown_task", "tests/test_rds/test_rds_export_tasks.py::test_start_export_task_fails_unknown_snapshot", "tests/test_rds/test_rds_export_tasks.py::t...
[ "tests/test_kms/test_kms_grants.py::test_list_retirable_grants", "tests/test_kms/test_kms_grants.py::test_list_grants", "tests/test_kms/test_kms_grants.py::test_create_grant", "tests/test_kms/test_kms_grants.py::test_retire_grant_by_grant_id", "tests/test_kms/test_kms_grants.py::test_revoke_grant_by_token",...
getmoto__moto-6726
I guess the imported module is not supposed to be an "official" member of the protocol, should it? (And that [PEP 544](https://peps.python.org/pep-0544/) does not mention such cases?) If so, one could silently ignore this member, which should be little effort. Yeah, I am going to simply ignore all imports.
diff --git a/moto/ec2/models/security_groups.py b/moto/ec2/models/security_groups.py --- a/moto/ec2/models/security_groups.py +++ b/moto/ec2/models/security_groups.py @@ -36,16 +36,18 @@ def __init__( ip_ranges: Optional[List[Any]], source_groups: List[Dict[str, Any]], prefix_list_ids: Option...
diff --git a/mypy/test/testtypes.py b/mypy/test/testtypes.py --- a/mypy/test/testtypes.py +++ b/mypy/test/testtypes.py @@ -3,7 +3,7 @@ from typing import List, Tuple from mypy.test.helpers import Suite, assert_equal, assert_type, skip -from mypy.erasetype import erase_type +from mypy.erasetype import erase_type, re...
2023-04-04 20:51:58
Inner method discards type narrowing done in outer method So everybody knows not to write `def foo(arg={'bar': 'baz'}):` So instead one usually writes something like: ``` def foo(arg=None): if arg is None: arg = {'bar', 'baz'} ``` Now add some types: ``` def func(arg=None): # type: (Dict[...
getmoto/moto
1b2dfbaf569d21c5a3a1c35592325b09b3c697f4
1.5
[]
[ "tests/test_s3/test_server.py::test_s3_server_post_cors_exposed_header" ]
getmoto__moto-7647
Hi @nicor88, I'm just looking into this now. Are you familiar with how the versioning behaves on deletion? I.e., if I have versions `1, 2, 3` and I delete version `2`. Would the next call to `get_table_versions` return `1, 3`? Or would it reset to `1, 2`? Reading the documentation, it feels like the latter would happe...
diff --git a/moto/dynamodb/models/table.py b/moto/dynamodb/models/table.py --- a/moto/dynamodb/models/table.py +++ b/moto/dynamodb/models/table.py @@ -20,6 +20,8 @@ from moto.dynamodb.models.utilities import dynamo_json_dump from moto.moto_api._internal import mock_random +RESULT_SIZE_LIMIT = 1000000 # DynamoDB ha...
diff --git a/tests/test_ec2/test_vpcs.py b/tests/test_ec2/test_vpcs.py --- a/tests/test_ec2/test_vpcs.py +++ b/tests/test_ec2/test_vpcs.py @@ -2,7 +2,7 @@ from botocore.exceptions import ClientError import boto3 - +import json import sure # noqa # pylint: disable=unused-import import random @@ -1006,6 +1006,36...
2022-09-30 18:57:18
add support to ec2 describe-key-pairs with filters ### Overview Implement support for describe_key_pairs with filter option. ### Steps to reproduce ```shell awslocal ec2 describe-key-pairs --region us-east-2 --filters "Name=tag:ManagedBy,Values=hyperswitch" ``` following is the error ```shell An error occurre...
getmoto/moto
ba90dc48fef38e48f0615f1f742a767fcde70fa9
5.0
[ "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_dynamodb/test_dynamodb.py::test_transact_write_items_put_conditional_expressions_return_valu...
[ "tests/test_dynamodb/test_dynamodb_create_table.py::test_create_table__specify_non_key_column" ]
getmoto__moto-6919
diff --git a/mypy/server/update.py b/mypy/server/update.py --- a/mypy/server/update.py +++ b/mypy/server/update.py @@ -1172,7 +1172,11 @@ def refresh_suppressed_submodules( return None # Find any submodules present in the directory. pkgdir = os.path.dirname(path) - for fnam in fscache.listdir(pkgd...
diff --git a/tests/test_dynamodb/test_dynamodb.py b/tests/test_dynamodb/test_dynamodb.py --- a/tests/test_dynamodb/test_dynamodb.py +++ b/tests/test_dynamodb/test_dynamodb.py @@ -1386,6 +1386,25 @@ def test_query_filter(): ) assert response["Count"] == 2 + # Combine Limit + Scan + response = table.que...
2022-01-10T13:10:13Z
Full Step Functions Execution Support I didn't see this in the issues, so my apologies if it's already filed. This is a feature request for full Step Function execution support, such that test code could call sfn.StartExecution and get a production-like execution of a state machine, including retries, error handlin...
getmoto/moto
afa34ffd8d727c3e67d0fa8d515f498ba165fbe1
5.0
[ "tests/test_ec2/test_security_groups.py::test_authorize_other_group_and_revoke", "tests/test_ec2/test_security_groups.py::test_authorize_all_protocols_with_no_port_specification", "tests/test_ec2/test_security_groups.py::test_get_all_security_groups_filter_with_same_vpc_id", "tests/test_ec2/test_security_grou...
[ "tests/test_ssm/test_ssm_maintenance_windows.py::test_tags" ]
getmoto__moto-5155
diff --git a/moto/ec2/models/elastic_ip_addresses.py b/moto/ec2/models/elastic_ip_addresses.py --- a/moto/ec2/models/elastic_ip_addresses.py +++ b/moto/ec2/models/elastic_ip_addresses.py @@ -37,7 +37,7 @@ def cloudformation_name_type(): @staticmethod def cloudformation_type(): - # https://docs.aws.am...
diff --git a/tests/test_ec2/test_instances.py b/tests/test_ec2/test_instances.py --- a/tests/test_ec2/test_instances.py +++ b/tests/test_ec2/test_instances.py @@ -2616,6 +2616,25 @@ def test_instance_iam_instance_profile(): assert "Id" in instance.iam_instance_profile assert profile["InstanceProfile"]["Arn"] ...
2021-09-20T18:31:53Z
Tags on spot fleet requests missing from describe-spot-fleet-requests response I'm trying to filter the response for describe-spot-fleet-requests by tags, but it looks like the response doesn't contain the tags. To be clear, there are two different TagSpecification fields that AWS supports. One is inside the LaunchS...
getmoto/moto
05f5bbc568b3e1b9de402d194b3e93a39b6b2c27
4.1
[]
[ "tests/test_guardduty/test_guardduty_organization.py::test_enable_organization_admin_account", "tests/test_guardduty/test_guardduty_organization.py::test_list_organization_admin_accounts", "tests/test_guardduty/test_guardduty_filters.py::test_create_filter__defaults", "tests/test_guardduty/test_guardduty_filt...
getmoto__moto-5110
I have interest in getting WAF(v2) support and started an issue here: https://github.com/spulec/moto/issues/3971
diff --git a/moto/sns/exceptions.py b/moto/sns/exceptions.py --- a/moto/sns/exceptions.py +++ b/moto/sns/exceptions.py @@ -1,7 +1,13 @@ from moto.core.exceptions import RESTError -class SNSNotFoundError(RESTError): +class SNSException(RESTError): + def __init__(self, *args, **kwargs): + kwargs["template"...
diff --git a/tests/test_ecs/test_ecs_boto3.py b/tests/test_ecs/test_ecs_boto3.py --- a/tests/test_ecs/test_ecs_boto3.py +++ b/tests/test_ecs/test_ecs_boto3.py @@ -11,6 +11,7 @@ from uuid import UUID from moto import mock_ecs, mock_ec2, settings +from moto.moto_api import state_manager from tests import EXAMPLE_AMI...
2023-04-13 10:34:24
lambda get_function() returns config working directory in error Thanks for the recent fix, but I've spotted another problem/corner case in moto 4.1.14. In the case where a function's `ImageConfig` dict does not contain a working directory definition, it is not reported by `get_function()`. For example: ``` >>> i...
getmoto/moto
d77acd4456da1cc356adb91cd1e8008ea4e7a79e
1.7
[ "mypy/test/teststubgen.py::StubgenPythonSuite::stubgen.test::testGenericClassTypeVarTuple", "mypy/test/teststubgen.py::StubgenPythonSuite::stubgen.test::testObjectBaseClass", "mypy/test/teststubgen.py::StubgenPythonSuite::stubgen.test::testGenericClassTypeVarTuple_semanal", "mypy/test/teststubgen.py::StubgenP...
[ "tests/test_cloudwatch/test_cloudwatch_tags.py::test_tag_resource_on_resource_without_tags" ]
getmoto__moto-7102
diff --git a/mypy/plugins/dataclasses.py b/mypy/plugins/dataclasses.py --- a/mypy/plugins/dataclasses.py +++ b/mypy/plugins/dataclasses.py @@ -24,6 +24,7 @@ Context, DataclassTransformSpec, Decorator, + EllipsisExpr, Expression, FuncDef, FuncItem, @@ -149,13 +150,13 @@ def to_argument( ...
diff --git a/test-data/unit/check-enum.test b/test-data/unit/check-enum.test --- a/test-data/unit/check-enum.test +++ b/test-data/unit/check-enum.test @@ -1360,3 +1360,34 @@ class E(IntEnum): A = N(0) reveal_type(E.A.value) # N: Revealed type is "__main__.N" + + +[case testEnumReusedKeys] +# https://github.com/...
2022-05-08 19:56:08
Using LastEvaluatedKey to page through an index ### Description Paging using LastEvaluatedKey and ExclusiveStartKey has stopped working properly in moto 5.0.4 and 5.0.5. It was working fine up till 5.0.3. This seems similar to this closed issue: https://github.com/getmoto/moto/issues/7531 ### Code snippet ...
getmoto/moto
3adbb8136a3ae81f7d5cb403f4d0a3aa100ee16f
1.5
[ "tests/test_events/test_events.py::test_list_replays_with_source_arn", "tests/test_events/test_events.py::test_rule_tagging_happy", "tests/test_events/test_events.py::test_list_replays_with_name_prefix", "tests/test_events/test_events.py::test_start_replay", "tests/test_events/test_events.py::test_start_rep...
[ "mypy/test/testcheck.py::TypeCheckSuite::check-narrowing.test::testTypeNarrowingReachableNegativeUnion", "mypy/test/testcheck.py::TypeCheckSuite::check-narrowing.test::testTypeNarrowingReachableNegative" ]
python__mypy-9893
That's a fun one! It's probably pretty easy to fix if you track down where the error comes from (probably somewhere in `fastparse.py`). I did some digging. The error is being raised from `visit_Subscript` in `mypy.fastparse.TypeConverter`. The code is different depending on the Python version but the error is the same...
diff --git a/mypy/checker.py b/mypy/checker.py --- a/mypy/checker.py +++ b/mypy/checker.py @@ -4944,7 +4944,7 @@ def visit_match_stmt(self, s: MatchStmt) -> None: self.push_type_map(pattern_map) self.push_type_map(pattern_type.captures) if g is not ...
diff --git a/tests/test_dynamodb/test_dynamodb_table_without_range_key.py b/tests/test_dynamodb/test_dynamodb_table_without_range_key.py --- a/tests/test_dynamodb/test_dynamodb_table_without_range_key.py +++ b/tests/test_dynamodb/test_dynamodb_table_without_range_key.py @@ -10,8 +10,8 @@ @mock_dynamodb -def test_c...
2023-07-06 22:34:28
Support `SM2DSA` signing algorithm for KMS Let's add `SM2DSA` signing algorithm for kms. KMS document: https://docs.aws.amazon.com/kms/latest/APIReference/API_Sign.html#API_Sign_RequestSyntax Supported algorithms: ``` RSASSA_PSS_SHA_256 | RSASSA_PSS_SHA_384 | RSASSA_PSS_SHA_512 | RSASSA_PKCS1_V1_5_SHA_256 | RSASS...
getmoto/moto
905c2cbcc233727cbf42d9f3ac78849318482af2
5.0
[ "tests/test_iotdata/test_iotdata.py::test_basic", "tests/test_iotdata/test_iotdata.py::test_update", "tests/test_iotdata/test_iotdata.py::test_delete_field_from_device_shadow" ]
[ "mypy/test/testcheck.py::TypeCheckSuite::check-functions.test::testFunctionWithNameUnderscore" ]
End of preview. Expand in Data Studio

edition_0213_SWE-Gym-SWE-Gym-readymade

A Readymade by TheFactoryX

Original Dataset

SWE-Gym/SWE-Gym

Process

This dataset is a "readymade" - inspired by Marcel Duchamp's concept of taking everyday objects and recontextualizing them as art.

What we did:

  1. Selected the original dataset from Hugging Face
  2. Shuffled each column independently
  3. Destroyed all row-wise relationships
  4. 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
3