Skip to content

Commit c8a689f

Browse files
authored
Fix pyrefly check bad-argument-count (#39416)
1 parent b04ca1e commit c8a689f

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

sdks/python/apache_beam/ml/anomaly/specifiable.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ def unspecifiable(cls):
417417
_register(cls, spec_type)
418418

419419
class_name = cls.__name__
420-
original_init = cls.__init__ # type: ignore[misc]
420+
original_init: Any = cls.__init__ # type: ignore[misc]
421421
cls.__init__ = new_init # type: ignore[misc]
422422
if just_in_time_init:
423423
cls.__getattr__ = new_getattr

sdks/python/pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,5 +213,4 @@ invalid-inheritance = "ignore"
213213
not-iterable = "ignore"
214214
unexpected-keyword = "ignore"
215215
invalid-yield = "ignore"
216-
bad-argument-count = "ignore"
217216
bad-typed-dict-key = "ignore"

0 commit comments

Comments
 (0)