← Back to scan
File as GitHub Issue repo: modern-python/modern-di

Push this scan report to modern-python/modern-di

Click the green button below to open GitHub’s new-issue form, pre-filled with the report title, summary table, top findings, and an embedded score-card image. No authentication needed — you review on GitHub before submitting. Repobility is credited as the scanner.

Embedded score card image

This image will render at the top of the issue body. Hosted on Repobility, refreshes automatically after re-scans.

Repobility score card

Issue title

`self.bound_type` used but never assigned in __init__

Curate findings to include

Pick exactly which findings appear in the issue body. By default the top 5 are included. Uncheck noise, check what matters.

Top 5 (default)
Severity Rule Title File:line
HIGH SEC128 [SEC128] Async function without await — fire-and-forget Promise (AI mistake): Async call … modern_di/providers/factory.py:111
HIGH MINED108 `self._find_source` used but never assigned in __init__ modern_di/providers/alias.py:39
HIGH MINED108 `self._find_source` used but never assigned in __init__ modern_di/providers/alias.py:36
HIGH MINED108 `self.scope` used but never assigned in __init__ modern_di/providers/alias.py:27
HIGH MINED108 `self.bound_type` used but never assigned in __init__ modern_di/providers/alias.py:27
HIGH MINED108 `self.scope` used but never assigned in __init__ modern_di/providers/context_provider.py:38
HIGH MINED108 `self._find_context_value` used but never assigned in __init__ modern_di/providers/context_provider.py:32
HIGH MINED108 `self.scope` used but never assigned in __init__ modern_di/providers/context_provider.py:29
HIGH MINED108 `self._resolution_step` used but never assigned in __init__ modern_di/providers/factory.py:150
HIGH MINED108 `self._ensure_kwargs_cached` used but never assigned in __init__ modern_di/providers/factory.py:145
HIGH MINED108 `self.scope` used but never assigned in __init__ modern_di/providers/factory.py:138
HIGH MINED108 `self._ensure_kwargs_cached` used but never assigned in __init__ modern_di/providers/factory.py:134
HIGH MINED108 `self.scope` used but never assigned in __init__ modern_di/providers/factory.py:132
HIGH MINED108 `self._compile_kwargs` used but never assigned in __init__ modern_di/providers/factory.py:118
HIGH MINED108 `self.bound_type` used but never assigned in __init__ modern_di/providers/factory.py:95
HIGH MINED108 `self.bound_type` used but never assigned in __init__ modern_di/providers/factory.py:106
HIGH MINED108 `self.scope` used but never assigned in __init__ modern_di/providers/factory.py:66
HIGH MINED108 `self.bound_type` used but never assigned in __init__ modern_di/providers/factory.py:65
HIGH MINED108 `self.scope` used but never assigned in __init__ modern_di/providers/factory.py:62
HIGH MINED108 `self.register` used but never assigned in __init__ modern_di/registries/providers_registry…:53
HIGH MINED108 `self._clear` used but never assigned in __init__ modern_di/registries/cache_registry.py:35
HIGH MINED108 `self._clear` used but never assigned in __init__ modern_di/registries/cache_registry.py:27
HIGH MINED106 Phantom test coverage: test_dict_setdefault_uuid_key benchmarks/bench_override_fastpath.py:148
HIGH MINED106 Phantom test coverage: test_dict_setdefault_int_key benchmarks/bench_override_fastpath.py:141
HIGH MINED106 Phantom test coverage: test_dict_lookup_uuid_key benchmarks/bench_override_fastpath.py:135
HIGH MINED106 Phantom test coverage: test_dict_lookup_int_key benchmarks/bench_override_fastpath.py:129
HIGH MINED106 Phantom test coverage: test_override_self_baseline benchmarks/bench_override_fastpath.py:106
HIGH MINED106 Phantom test coverage: test_override_self_optimized benchmarks/bench_override_fastpath.py:100
HIGH MINED106 Phantom test coverage: test_override_other_baseline benchmarks/bench_override_fastpath.py:84
HIGH MINED106 Phantom test coverage: test_override_other_optimized benchmarks/bench_override_fastpath.py:78
HIGH MINED106 Phantom test coverage: test_no_overrides_baseline benchmarks/bench_override_fastpath.py:63
HIGH MINED106 Phantom test coverage: test_no_overrides_optimized benchmarks/bench_override_fastpath.py:58
HIGH MINED106 Phantom test coverage: test_kwargs_loop_unified benchmarks/bench_kwargs_split.py:178
HIGH MINED106 Phantom test coverage: test_kwargs_loop_split benchmarks/bench_kwargs_split.py:164
HIGH MINED106 Phantom test coverage: test_singleton_baseline benchmarks/bench_kwargs_split.py:130
HIGH MINED106 Phantom test coverage: test_singleton_optimized benchmarks/bench_kwargs_split.py:96
HIGH MINED106 Phantom test coverage: test_uncached_baseline benchmarks/bench_kwargs_split.py:73
HIGH MINED106 Phantom test coverage: test_uncached_optimized benchmarks/bench_kwargs_split.py:67
HIGH MINED106 Phantom test coverage: test_full_resolve_cross_scope_baseline benchmarks/bench_scope_map.py:118
HIGH MINED106 Phantom test coverage: test_full_resolve_cross_scope_optimized benchmarks/bench_scope_map.py:112
HIGH MINED106 Phantom test coverage: test_find_parent_scope_baseline benchmarks/bench_scope_map.py:94
HIGH MINED106 Phantom test coverage: test_find_parent_scope_optimized benchmarks/bench_scope_map.py:86
HIGH MINED106 Phantom test coverage: test_find_same_scope_baseline benchmarks/bench_scope_map.py:71
HIGH MINED106 Phantom test coverage: test_find_same_scope_optimized benchmarks/bench_scope_map.py:66
HIGH MINED108 `self.args` used but never assigned in __init__ modern_di/exceptions.py:95
HIGH MINED108 `self.close_async` used but never assigned in __init__ modern_di/container.py:177
HIGH MINED108 `self.close_sync` used but never assigned in __init__ modern_di/container.py:171
HIGH MINED108 `self.resolve_provider` used but never assigned in __init__ modern_di/container.py:98
HIGH COMP001 [COMP001] High cognitive complexity: Function `_compile_kwargs` has cognitive complexity … modern_di/providers/factory.py:68
HIGH MINED115 Action `astral-sh/setup-uv` pinned to mutable ref `@v3` .github/workflows/publish.yml:14
HIGH MINED115 Action `extractions/setup-just` pinned to mutable ref `@v2` .github/workflows/publish.yml:13
HIGH MINED115 Action `actions/checkout` pinned to mutable ref `@v4` .github/workflows/publish.yml:12
HIGH MINED115 Action `astral-sh/setup-uv` pinned to mutable ref `@v3` .github/workflows/ci.yml:40
HIGH MINED115 Action `extractions/setup-just` pinned to mutable ref `@v2` .github/workflows/ci.yml:39
HIGH MINED115 Action `actions/checkout` pinned to mutable ref `@v4` .github/workflows/ci.yml:38
HIGH MINED115 Action `astral-sh/setup-uv` pinned to mutable ref `@v3` .github/workflows/ci.yml:19
HIGH MINED115 Action `extractions/setup-just` pinned to mutable ref `@v2` .github/workflows/ci.yml:18
HIGH MINED115 Action `actions/checkout` pinned to mutable ref `@v4` .github/workflows/ci.yml:17
MED MINED111 Bare except continues silently modern_di/registries/cache_registry.py:63
MED MINED111 Bare except continues silently modern_di/registries/cache_registry.py:53
MED MINED124 requirements.txt: `mkdocs-material` has no version pin docs/requirements.txt:2
MED MINED124 requirements.txt: `mkdocs` has no version pin docs/requirements.txt:1
LOW COMP001 [COMP001] High cognitive complexity: Function `build_suggestions` has cognitive complexit… modern_di/registries/providers_registry…:55
LOW COMP001 [COMP001] High cognitive complexity: Function `__init__` has cognitive complexity 9 (Sona… modern_di/container.py:30
INFO MINED072 [MINED072] Python Pass Only Class: class Foo: pass — stub waiting to be filled in. benchmarks/bench_scope_map.py:44
INFO MINED072 [MINED072] Python Pass Only Class: class Foo: pass — stub waiting to be filled in. benchmarks/bench_override_fastpath.py:28
INFO MINED072 [MINED072] Python Pass Only Class: class Foo: pass — stub waiting to be filled in. benchmarks/bench_kwargs_split.py:28
INFO MINED050 [MINED050] Stub Only Function: Function declared but body is just pass, return None, rais… benchmarks/bench_scope_map.py:45
INFO MINED050 [MINED050] Stub Only Function: Function declared but body is just pass, return None, rais… benchmarks/bench_override_fastpath.py:29
INFO MINED050 [MINED050] Stub Only Function: Function declared but body is just pass, return None, rais… benchmarks/bench_kwargs_split.py:29
Reset to top 5 70 findings available (after auto-suppression of test files + won't-fix)

Issue body (markdown)

## Code-quality scan: `modern-python/modern-di`

**Score: 92/100 (A-)**  ·  73 findings  ·  scanned 2026-06-05 12:52 UTC  ·  3,085 LOC

| Severity | Count |
|---|---|
| CRITICAL | 0 |
| HIGH | 58 |
| MEDIUM | 4 |
| LOW | 2 |

📊 [Full filterable report](https://repobility.com/scan/00d6d4e8-765e-414b-b211-4a66299ebf76/)  ·  ![scorecard](https://repobility.com/scan/00d6d4e8-765e-414b-b211-4a66299ebf76/report.png?v=1780663944-s2)

### Top findings

1. **HIGH** `SEC128` — Async function without await — fire-and-forget Promise (AI mistake)
   `modern_di/providers/factory.py:111`
2. **HIGH** `MINED108` — `self._find_source` used but never assigned in __init__
   `modern_di/providers/alias.py:39` · ✓ Repobility
3. **HIGH** `MINED108` — `self._find_source` used but never assigned in __init__
   `modern_di/providers/alias.py:36` · ✓ Repobility
4. **HIGH** `MINED108` — `self.scope` used but never assigned in __init__
   `modern_di/providers/alias.py:27` · ✓ Repobility
5. **HIGH** `MINED108` — `self.bound_type` used but never assigned in __init__
   `modern_di/providers/alias.py:27` · ✓ Repobility

---

**Security note**: this issue is public. If any flagged finding is a real, exploitable vulnerability, please redirect to your `SECURITY.md` policy or open a [private security advisory](https://docs.github.com/en/code-security/security-advisories/guidance-on-reporting-and-writing-information-about-vulnerabilities/privately-reporting-a-security-vulnerability) instead. We're happy to close this and re-submit privately.

---

_Filed automatically. Close this issue if not useful — we won't refile. Full report: https://repobility.com/scan/00d6d4e8-765e-414b-b211-4a66299ebf76/_
Megaproject â high spam risk
Could not determine 'modern-python/modern-di' star count (GitHub API rate-limited or unreachable). When in doubt about repo size, prefer opening a focused PR or a discussion rather than an issue.
Already filed
42/74 findings (57%) on this scan are already flagged as test-file, won't-fix, or suppressed. The scan is too noisy to file as a single issue. Curate down to specific actionable findings, or address the FP source first.

The button opens GitHubâs new-issue page in a new tab. You will see the title + body pre-filled â review, edit if you want, then click GitHubâs "Submit new issue" button. Repobility never posts anything on your behalf.

For real security findings on big repos: use the project's SECURITY.md or private advisory flow instead of a public issue.