This is an automated email from the ASF dual-hosted git repository.

jrmccluskey pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/beam.git


The following commit(s) were added to refs/heads/master by this push:
     new c8a689f7c0d Fix pyrefly check bad-argument-count (#39416)
c8a689f7c0d is described below

commit c8a689f7c0d8a1a9a9efe00c91ba13f60dadc025
Author: Jack McCluskey <[email protected]>
AuthorDate: Wed Jul 22 12:15:38 2026 -0400

    Fix pyrefly check bad-argument-count (#39416)
---
 sdks/python/apache_beam/ml/anomaly/specifiable.py | 2 +-
 sdks/python/pyproject.toml                        | 1 -
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/sdks/python/apache_beam/ml/anomaly/specifiable.py 
b/sdks/python/apache_beam/ml/anomaly/specifiable.py
index 010fb4da29c..6e37efef038 100644
--- a/sdks/python/apache_beam/ml/anomaly/specifiable.py
+++ b/sdks/python/apache_beam/ml/anomaly/specifiable.py
@@ -417,7 +417,7 @@ def specifiable(
     _register(cls, spec_type)
 
     class_name = cls.__name__
-    original_init = cls.__init__  # type: ignore[misc]
+    original_init: Any = cls.__init__  # type: ignore[misc]
     cls.__init__ = new_init  # type: ignore[misc]
     if just_in_time_init:
       cls.__getattr__ = new_getattr
diff --git a/sdks/python/pyproject.toml b/sdks/python/pyproject.toml
index d5a2b2c2f28..e769bf2d91e 100644
--- a/sdks/python/pyproject.toml
+++ b/sdks/python/pyproject.toml
@@ -213,5 +213,4 @@ invalid-inheritance = "ignore"
 not-iterable = "ignore"
 unexpected-keyword = "ignore"
 invalid-yield = "ignore"
-bad-argument-count = "ignore"
 bad-typed-dict-key = "ignore"

Reply via email to