Skip to content

Commit 50645f3

Browse files
committed
chore: address static-analysis cleanup review
1 parent db171a1 commit 50645f3

2 files changed

Lines changed: 9 additions & 4 deletions

File tree

CHANGELOG.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [Unreleased]
9+
10+
### Changed
11+
- **Internal: cleaned package-source Ruff static-analysis findings** across forward-reference,
12+
stale f-string, invalid `noqa`, and audited unused-local sites. No public API or numerical
13+
behavior change.
14+
815
## [3.7.0] - 2026-07-08
916

1017
### Added
@@ -954,9 +961,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
954961
county event studies -12%/-13% (rust/python), with no scenario regressing. Rust outputs
955962
move only at the cross-backend parity tolerances (REGISTRY-documented; never
956963
bit-identical across backends).
957-
- **Internal: cleaned package-source Ruff static-analysis findings** across forward-reference,
958-
stale f-string, invalid `noqa`, and audited unused-local sites. No public API or numerical
959-
behavior change.
960964
- **FE-absorption demeaning rewritten: factorize-once + `np.bincount` method of alternating
961965
projections** (`demean_by_groups` / `within_transform`). Each absorbed dimension is factorized
962966
once and group means are formed via `np.bincount` instead of re-hashing the group keys with

diff_diff/staggered.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4612,7 +4612,8 @@ def _doubly_robust_rc(
46124612
ps_ct = pscore[n_gt + n_gs : n_gt + n_gs + n_ct]
46134613
ps_cs = pscore[n_gt + n_gs + n_ct :]
46144614
# The symmetric treated slices ps_gt and ps_gs are intentionally not
4615-
# materialized: only control propensity slices feed IPW control weights.
4615+
# materialized: only control propensity slices feed IPW control weights
4616+
# (the propensity-estimation IF correction consumes the full pscore array directly).
46164617

46174618
# =====================================================================
46184619
# 3. Group weights and R-convention means

0 commit comments

Comments
 (0)