@@ -145,11 +145,8 @@ class BalanceFrame:
145145 False
146146 """
147147
148- # pyre-fixme[13]: Attributes are initialized in _create() / from_frame()
149148 _sf_sample_pre_adjust : SampleFrame
150- # pyre-fixme[13]: Attributes are initialized in _create() / from_frame()
151149 _sf_sample : SampleFrame
152- # pyre-fixme[13]: Attributes are initialized in _create() / from_frame()
153150 _sf_target : SampleFrame | None
154151 # pyre-fixme[13]: Attributes are initialized in _create() / from_frame()
155152 _adjustment_model : dict [str , Any ] | None
@@ -171,21 +168,13 @@ def _sync_sampleframe_state_from_responder(self, responder: SampleFrame) -> None
171168 properties stay consistent with ``_sf_sample``.
172169 """
173170 if isinstance (self , SampleFrame ):
174- # pyrefly: ignore [missing-attribute]
175171 self ._df = responder ._df
176- # pyrefly: ignore [missing-attribute]
177172 self ._id_column_name = responder ._id_column_name
178- # pyrefly: ignore [missing-attribute]
179173 self ._column_roles = responder ._column_roles
180- # pyrefly: ignore [missing-attribute]
181174 self ._weight_column_name = responder ._weight_column_name
182- # pyrefly: ignore [missing-attribute]
183175 self ._weight_metadata = responder ._weight_metadata
184- # pyrefly: ignore [missing-attribute]
185176 self ._prediction_metadata = responder ._prediction_metadata
186- # pyrefly: ignore [missing-attribute]
187177 self ._outcome_model = responder ._outcome_model
188- # pyrefly: ignore [missing-attribute]
189178 self ._df_dtypes = responder ._df_dtypes
190179
191180 @staticmethod
@@ -256,7 +245,6 @@ def _df_dtypes(self) -> pd.Series | None:
256245
257246 @_df_dtypes .setter
258247 def _df_dtypes (self , value : pd .Series | None ) -> None :
259- # pyrefly: ignore [missing-attribute]
260248 self ._sf_sample ._df_dtypes = value
261249
262250 @property
@@ -295,7 +283,6 @@ def _df(self, value: pd.DataFrame | None) -> None:
295283 "Cannot set _df to None. A BalanceFrame must always have a "
296284 "backing DataFrame."
297285 )
298- # pyrefly: ignore [missing-attribute]
299286 self ._sf_sample ._df = value
300287
301288 @property
@@ -475,7 +462,6 @@ def _create(
475462 instance ._adjustment_history = []
476463 instance ._links = collections .defaultdict (list )
477464 if target is not None :
478- # pyrefly: ignore [unsupported-operation]
479465 instance ._links ["target" ] = target
480466
481467 # When the instance is also a SampleFrame (e.g., Sample inherits
@@ -1718,7 +1704,6 @@ def _predict_outcomes_on_target(self, *, populate: bool) -> pd.DataFrame:
17181704 self ._sf_target = target_copy
17191705 # Keep the raw-SampleFrame target link in sync with the populated copy
17201706 # (a richer BalanceFrame/Sample link is left untouched).
1721- # pyrefly: ignore [not-iterable]
17221707 target_link = self ._links .get ("target" ) if self ._links else None
17231708 if target_link is not None and not isinstance (target_link , BalanceFrame ):
17241709 # pyrefly: ignore [unsupported-operation]
@@ -4186,7 +4171,6 @@ def _filter_sf(
41864171 df = df .loc [:, df .columns .isin (keep_set )]
41874172
41884173 new_covars = [c for c in sf ._column_roles ["covars" ] if c in keep_set ]
4189- # pyrefly: ignore [missing-attribute]
41904174 sf ._column_roles = dict (sf ._column_roles )
41914175 sf ._column_roles ["covars" ] = new_covars
41924176 if sf ._column_roles ["outcomes" ]:
@@ -4202,7 +4186,6 @@ def _filter_sf(
42024186 c for c in sf ._column_roles ["ignored" ] if c in keep_set
42034187 ]
42044188
4205- # pyrefly: ignore [missing-attribute]
42064189 sf ._df = df
42074190 return sf
42084191
@@ -4523,7 +4506,6 @@ def __str__(self, pkg_source: str | None = None) -> str:
45234506
45244507 if self .has_target ():
45254508 common_variables = balance_util .choose_variables (
4526- # pyrefly: ignore [unsupported-operation]
45274509 self ,
45284510 # pyrefly: ignore [unsupported-operation]
45294511 self ._links ["target" ],
0 commit comments