[ty] Allow self-referential imports outside of the global scope by charliermarsh · Pull Request #22963 · astral-sh/ruff (original) (raw)
pip (https://github.com/pypa/pip)
- src/pip/_internal/locations/init.py:433:19: warning[possibly-missing-import] Member
_distutilsof modulepip._internal.locationsmay be missing
- Found 625 diagnostics
- Found 626 diagnostics
xarray (https://github.com/pydata/xarray)
- xarray/core/indexing.py:1802:38: error[unresolved-import] Module
xarray.core.indexinghas no memberVectorizedIndexer - xarray/core/indexing.py:1802:57: error[unresolved-import] Module
xarray.core.indexinghas no memberapply_indexer - xarray/core/indexing.py:1802:72: error[unresolved-import] Module
xarray.core.indexinghas no memberas_indexable - Found 1770 diagnostics
- Found 1767 diagnostics
zope.interface (https://github.com/zopefoundation/zope.interface)
- src/zope/interface/tests/test_declarations.py:673:60: error[unresolved-import] Module
zope.interface.tests.test_declarationshas no memberFooNoCall
- src/zope/interface/tests/test_declarations.py:676:9: error[unresolved-attribute] Unresolved attribute
__name__on typeFooNoCall
- src/zope/interface/tests/test_declarations.py:689:60: error[unresolved-import] Module
zope.interface.tests.test_declarationshas no memberFooImplementedNone
- src/zope/interface/tests/test_declarations.py:683:13: error[unresolved-attribute] Object of type
FooNoCallhas no attribute__providedBy__ - src/zope/interface/tests/test_declarations.py:698:13: error[unresolved-attribute] Class
FooImplementedNonehas no attribute__providedBy__ - src/zope/interface/tests/test_declarations.py:701:13: error[unresolved-attribute] Class
FooImplementedNonehas no attribute__provides__ - src/zope/interface/tests/test_declarations.py:704:13: error[unresolved-attribute] Class
FooImplementedNonehas no attribute__provides__ - src/zope/interface/tests/test_declarations.py:704:46: error[unresolved-attribute] Class
FooImplementedNonehas no attribute__providedBy__
- src/zope/interface/tests/test_declarations.py:1157:60: error[unresolved-import] Module
zope.interface.tests.test_declarationshas no memberFoo
- src/zope/interface/tests/test_declarations.py:1162:16: error[unresolved-attribute] Object of type
Foohas no attribute__implemented__ - src/zope/interface/tests/test_declarations.py:1167:23: error[unresolved-attribute] Object of type
Foohas no attribute__implemented__
- src/zope/interface/tests/test_declarations.py:1377:60: error[unresolved-import] Module
zope.interface.tests.test_declarationshas no memberIBar - src/zope/interface/tests/test_declarations.py:1378:60: error[unresolved-import] Module
zope.interface.tests.test_declarationshas no memberIFoo - src/zope/interface/tests/test_exceptions.py:26:54: error[unresolved-import] Module
zope.interface.tests.test_exceptionshas no memberIDummy - src/zope/interface/tests/test_interface.py:1194:57: error[unresolved-import] Module
zope.interface.tests.test_interfacehas no memberHashMe - src/zope/interface/tests/test_sorting.py:64:55: error[unresolved-import] Module
zope.interface.tests.test_sortinghas no memberI1 - src/zope/interface/tests/test_sorting.py:66:9: error[invalid-argument-type] Argument to bound method
sortis incorrect: Argument typeUnknown | <class 'I1'>does not satisfy upper boundSupportsDunderLT[Any] | SupportsDunderGT[Any]of type variableSupportsRichComparisonT
- src/zope/interface/tests/test_sorting.py:66:9: error[invalid-argument-type] Argument to bound method
sortis incorrect: Argument typeUnknown | <class 'zope.interface.tests.test_sorting.I1'> | <class 'zope.interface.tests.m1.I1'>does not satisfy upper boundSupportsDunderLT[Any] | SupportsDunderGT[Any]of type variableSupportsRichComparisonT
scikit-build-core (https://github.com/scikit-build/scikit-build-core)
- src/scikit_build_core/build/wheel.py:99:20: error[no-matching-overload] No overload of bound method
__init__matches arguments
- Found 46 diagnostics
- Found 47 diagnostics
prefect (https://github.com/PrefectHQ/prefect)
- src/prefect/flow_engine.py:1818:37: error[unresolved-import] Module
prefect.flow_enginehas no memberrun_flow - src/prefect/server/schemas/states.py:178:51: error[unresolved-import] Module
prefect.server.schemas.stateshas no memberStateType - Found 5374 diagnostics
- Found 5372 diagnostics
dd-trace-py (https://github.com/DataDog/dd-trace-py)
- tests/contrib/django/test_django_dbm.py:27:54: error[unresolved-import] Module
tests.contrib.django.test_django_dbmhas no memberget_cursor - tests/contrib/django/test_django_dbm.py:57:54: error[unresolved-import] Module
tests.contrib.django.test_django_dbmhas no memberget_cursor - tests/contrib/django/test_django_dbm.py:94:54: error[unresolved-import] Module
tests.contrib.django.test_django_dbmhas no memberget_cursor - tests/contrib/django/test_django_dbm.py:141:54: error[unresolved-import] Module
tests.contrib.django.test_django_dbmhas no memberget_cursor - tests/contrib/fastapi/test_fastapi.py:635:52: error[unresolved-import] Module
tests.contrib.fastapi.test_fastapihas no member_run_websocket_test - tests/contrib/fastapi/test_fastapi.py:647:52: error[unresolved-import] Module
tests.contrib.fastapi.test_fastapihas no member_run_websocket_send_only_test - tests/contrib/fastapi/test_fastapi.py:660:52: error[unresolved-import] Module
tests.contrib.fastapi.test_fastapihas no member_run_websocket_test - tests/contrib/fastapi/test_fastapi.py:673:52: error[unresolved-import] Module
tests.contrib.fastapi.test_fastapihas no member_run_websocket_test - tests/contrib/fastapi/test_fastapi.py:749:52: error[unresolved-import] Module
tests.contrib.fastapi.test_fastapihas no member_run_websocket_context_propagation_test - tests/contrib/graphene/test_graphene.py:123:54: error[unresolved-import] Module
tests.contrib.graphene.test_graphenehas no memberQuery - tests/contrib/httpx/test_httpx.py:117:48: error[unresolved-import] Module
tests.contrib.httpx.test_httpxhas no memberget_url - tests/contrib/httpx/test_httpx.py:153:48: error[unresolved-import] Module
tests.contrib.httpx.test_httpxhas no memberget_url - tests/contrib/httpx/test_httpx.py:186:48: error[unresolved-import] Module
tests.contrib.httpx.test_httpxhas no memberget_url - tests/contrib/httpx/test_httpx.py:219:48: error[unresolved-import] Module
tests.contrib.httpx.test_httpxhas no memberget_url - tests/contrib/httpx/test_httpx.py:251:48: error[unresolved-import] Module
tests.contrib.httpx.test_httpxhas no memberget_url - tests/contrib/httpx/test_httpx.py:283:48: error[unresolved-import] Module
tests.contrib.httpx.test_httpxhas no memberget_url - tests/contrib/httpx/test_httpx.py:315:48: error[unresolved-import] Module
tests.contrib.httpx.test_httpxhas no memberget_url - tests/contrib/httpx/test_httpx.py:347:48: error[unresolved-import] Module
tests.contrib.httpx.test_httpxhas no memberget_url - tests/contrib/httpx/test_httpx.py:379:48: error[unresolved-import] Module
tests.contrib.httpx.test_httpxhas no memberget_url - tests/contrib/httpx/test_httpx.py:544:48: error[unresolved-import] Module
tests.contrib.httpx.test_httpxhas no memberget_url - tests/contrib/logbook/test_logbook_logging.py:61:60: error[unresolved-import] Module
tests.contrib.logbook.test_logbook_logginghas no member_test_logging - tests/contrib/loguru/test_loguru_logging.py:60:58: error[unresolved-import] Module
tests.contrib.loguru.test_loguru_logginghas no member_test_logging - tests/contrib/rediscluster/test.py:233:49: error[unresolved-import] Module
tests.contrib.rediscluster.testhas no member_get_test_client - tests/contrib/rediscluster/test.py:245:49: error[unresolved-import] Module
tests.contrib.rediscluster.testhas no member_get_test_client - tests/contrib/snowflake/test_snowflake.py:123:56: error[unresolved-import] Module
tests.contrib.snowflake.test_snowflakehas no member_client - tests/contrib/snowflake/test_snowflake.py:124:56: error[unresolved-import] Module
tests.contrib.snowflake.test_snowflakehas no memberadd_snowflake_query_response - tests/contrib/snowflake/test_snowflake.py:125:56: error[unresolved-import] Module
tests.contrib.snowflake.test_snowflakehas no memberreq_mock - tests/contrib/structlog/test_structlog_logging.py:64:64: error[unresolved-import] Module
tests.contrib.structlog.test_structlog_logginghas no member_test_logging - tests/datastreams/test_processor.py:57:50: error[unresolved-import] Module
tests.datastreams.test_processorhas no member_decode_datastreams_payload - tests/integration/test_integration.py:132:52: error[unresolved-import] Module
tests.integration.test_integrationhas no memberFOUR_KB - tests/integration/test_priority_sampling.py:62:58: error[unresolved-import] Module
tests.integration.test_priority_samplinghas no member_prime_tracer_with_priority_sample_rate_from_agent - tests/integration/test_priority_sampling.py:63:58: error[unresolved-import] Module
tests.integration.test_priority_samplinghas no member_turn_tracer_into_dummy - tests/integration/test_priority_sampling.py:104:58: error[unresolved-import] Module
tests.integration.test_priority_samplinghas no member_prime_tracer_with_priority_sample_rate_from_agent - tests/integration/test_priority_sampling.py:148:58: error[unresolved-import] Module
tests.integration.test_priority_samplinghas no member_prime_tracer_with_priority_sample_rate_from_agent - tests/integration/test_sampling.py:89:49: error[unresolved-import] Module
tests.integration.test_samplinghas no memberRESOURCE - tests/integration/test_sampling.py:99:49: error[unresolved-import] Module
tests.integration.test_samplinghas no memberTAGS - tests/integration/test_sampling.py:111:49: error[unresolved-import] Module
tests.integration.test_samplinghas no memberTAGS - tests/integration/test_sampling.py:123:49: error[unresolved-import] Module
tests.integration.test_samplinghas no memberTAGS - tests/integration/test_sampling.py:136:49: error[unresolved-import] Module
tests.integration.test_samplinghas no memberRESOURCE - tests/integration/test_sampling.py:137:49: error[unresolved-import] Module
tests.integration.test_samplinghas no memberTAGS - tests/integration/test_sampling.py:154:49: error[unresolved-import] Module
tests.integration.test_samplinghas no memberRESOURCE - tests/integration/test_sampling.py:171:49: error[unresolved-import] Module
tests.integration.test_samplinghas no memberRESOURCE - tests/integration/test_sampling.py:209:49: error[unresolved-import] Module
tests.integration.test_samplinghas no memberRESOURCE - tests/integration/test_sampling.py:210:49: error[unresolved-import] Module
tests.integration.test_samplinghas no memberTAGS - tests/integration/test_sampling.py:227:49: error[unresolved-import] Module
tests.integration.test_samplinghas no memberTAGS - tests/integration/test_sampling.py:244:49: error[unresolved-import] Module
tests.integration.test_samplinghas no memberTAGS - tests/integration/test_tracemethods.py:86:53: error[unresolved-import] Module
tests.integration.test_tracemethodshas no member_Class - tests/integration/test_tracemethods.py:87:53: error[unresolved-import] Module
tests.integration.test_tracemethodshas no member_test_method - tests/integration/test_tracemethods.py:88:53: error[unresolved-import] Module
tests.integration.test_tracemethodshas no member_test_method2 - tests/internal/test_settings.py:640:50: error[unresolved-import] Module
tests.internal.test_settingshas no member_base_rc_config - tests/internal/test_settings.py:641:50: error[unresolved-import] Module
tests.internal.test_settingshas no membercall_apm_tracing_rc - tests/opentelemetry/test_config.py:46:49: error[unresolved-import] Module
tests.opentelemetry.test_confighas no member_global_sampling_rule - tests/opentelemetry/test_config.py:80:49: error[unresolved-import] Module
tests.opentelemetry.test_confighas no member_global_sampling_rule - tests/opentelemetry/test_config.py:154:49: error[unresolved-import] Module
tests.opentelemetry.test_confighas no member_global_sampling_rule - tests/opentelemetry/test_config.py:165:49: error[unresolved-import] Module
tests.opentelemetry.test_confighas no member_global_sampling_rule - tests/opentelemetry/test_config.py:176:49: error[unresolved-import] Module
tests.opentelemetry.test_confighas no member_global_sampling_rule - tests/opentelemetry/test_config.py:190:49: error[unresolved-import] Module
tests.opentelemetry.test_confighas no member_global_sampling_rule - tests/opentelemetry/test_context.py:108:50: error[unresolved-import] Module
tests.opentelemetry.test_contexthas no member_subprocess_task - tests/opentelemetry/test_context.py:138:50: error[unresolved-import] Module
tests.opentelemetry.test_contexthas no member_subprocess_task - tests/opentelemetry/test_logs.py:203:47: error[unresolved-import] Module
tests.opentelemetry.test_logshas no memberdecode_logs_request - tests/opentelemetry/test_logs.py:204:47: error[unresolved-import] Module
tests.opentelemetry.test_logshas no memberextract_log_correlation_attributes - tests/opentelemetry/test_logs.py:283:47: error[unresolved-import] Module
tests.opentelemetry.test_logshas no membercreate_mock_grpc_server - tests/opentelemetry/test_logs.py:337:47: error[unresolved-import] Module
tests.opentelemetry.test_logshas no membercreate_mock_grpc_server - tests/opentelemetry/test_logs.py:338:47: error[unresolved-import] Module
tests.opentelemetry.test_logshas no memberfind_log_record_by_message - tests/opentelemetry/test_logs.py:396:47: error[unresolved-import] Module
tests.opentelemetry.test_logshas no membercreate_mock_grpc_server - tests/opentelemetry/test_logs.py:397:47: error[unresolved-import] Module
tests.opentelemetry.test_logshas no memberextract_log_correlation_attributes - tests/opentelemetry/test_logs.py:461:47: error[unresolved-import] Module
tests.opentelemetry.test_logshas no membercreate_mock_grpc_server - tests/opentelemetry/test_logs.py:462:47: error[unresolved-import] Module
tests.opentelemetry.test_logshas no memberextract_log_correlation_attributes - tests/opentelemetry/test_logs.py:523:47: error[unresolved-import] Module
tests.opentelemetry.test_logshas no membercreate_mock_grpc_server - tests/profiling/collector/test_memalloc.py:79:57: error[unresolved-import] Module
tests.profiling.collector.test_memallochas no member_allocate_1k - tests/profiling/collector/test_memalloc.py:173:57: error[unresolved-import] Module
tests.profiling.collector.test_memallochas no memberone - tests/profiling/collector/test_stack.py:72:54: error[unresolved-import] Module
tests.profiling.collector.test_stackhas no memberfunc1 - tests/profiling/collector/test_stack.py:581:54: error[unresolved-import] Module
tests.profiling.collector.test_stackhas no member_fib - tests/profiling/test_accuracy.py:71:47: error[unresolved-import] Module
tests.profiling.test_accuracyhas no memberassert_almost_equal - tests/profiling/test_accuracy.py:72:47: error[unresolved-import] Module
tests.profiling.test_accuracyhas no memberspend_16 - tests/tracer/test_encoders.py:636:44: error[unresolved-import] Module
tests.tracer.test_encodershas no memberdecode - tests/tracer/test_memory_leak.py:31:47: error[unresolved-import] Module
tests.tracer.test_memory_leakhas no membertrace - tests/tracer/test_memory_leak.py:57:47: error[unresolved-import] Module
tests.tracer.test_memory_leakhas no membertrace - tests/tracer/test_memory_leak.py:79:47: error[unresolved-import] Module
tests.tracer.test_memory_leakhas no membertrace - tests/tracer/test_memory_leak.py:105:47: error[unresolved-import] Module
tests.tracer.test_memory_leakhas no membertrace - tests/tracer/test_memory_leak.py:142:47: error[unresolved-import] Module
tests.tracer.test_memory_leakhas no membertrace - tests/tracer/test_rand.py:69:40: error[unresolved-import] Module
tests.tracer.test_randhas no memberMPQueue - tests/tracer/test_rand.py:101:40: error[unresolved-import] Module
tests.tracer.test_randhas no memberMPQueue - tests/tracer/test_rand.py:211:40: error[unresolved-import] Module
tests.tracer.test_randhas no memberMPQueue - tests/tracer/test_rand.py:212:40: error[unresolved-import] Module
tests.tracer.test_randhas no member_get_ids - tests/tracer/test_rand.py:289:40: error[unresolved-import] Module
tests.tracer.test_randhas no memberMPQueue - tests/tracer/test_tracer.py:1032:42: error[unresolved-import] Module
tests.tracer.test_tracerhas no member_test_tracer_runtime_tags_fork_task - Found 8557 diagnostics
- Found 8470 diagnostics
zulip (https://github.com/zulip/zulip)
- zerver/lib/display_recipient.py:222:46: error[unresolved-import] Module
zerver.lib.display_recipienthas no memberget_display_recipient_remote_cache - Found 3650 diagnostics
- Found 3649 diagnostics
sympy (https://github.com/sympy/sympy)
- sympy/functions/elementary/complexes.py:1087:58: error[unresolved-import] Module
sympy.functions.elementary.complexeshas no memberarg - sympy/matrices/matrixbase.py:1101:47: error[unresolved-import] Module
sympy.matrices.matrixbasehas no memberMatrixBase - sympy/matrices/matrixbase.py:1111:29: warning[unused-type-ignore-comment] Unused blanket
type: ignoredirective - sympy/matrices/matrixbase.py:1113:26: warning[unused-type-ignore-comment] Unused blanket
type: ignoredirective - sympy/matrices/matrixbase.py:5603:43: error[unresolved-import] Module
sympy.matrices.matrixbasehas no memberMatrixBase - Found 15656 diagnostics
- Found 15651 diagnostics
core (https://github.com/home-assistant/core)
- homeassistant/util/variance.py:47:12: error[invalid-return-type] Return type does not match returned value: expected
(**_P@ignore_variance) -> _R@ignore_variance, found_Wrapped[_P@ignore_variance, int | _R@ignore_variance | float | datetime, _P@ignore_variance, _R@ignore_variance | int | float | datetime] - Found 14515 diagnostics
- Found 14514 diagnostics
scipy (https://github.com/scipy/scipy)
- scipy/ndimage/_interpolation.py:740:50: error[unresolved-import] Module
scipy.ndimage._interpolationhas no membershift - scipy/ndimage/_interpolation.py:853:50: error[unresolved-import] Module
scipy.ndimage._interpolationhas no memberzoom - Found 8057 diagnostics
- Found 8055 diagnostics