We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 04cbd5d commit 1900a0aCopy full SHA for 1900a0a
sdks/python/apache_beam/coders/coder_impl.py
@@ -376,10 +376,11 @@ def _verify_dill_compat():
376
raise RuntimeError(base_error + f". Found dill version '{dill.__version__}")
377
378
379
+dataclass_uses_kw_only: Callable[[Any], bool]
380
if dataclasses:
381
# Cache the result to avoid multiple checks for the same dataclass type.
382
@functools.cache
- def dataclass_uses_kw_only(cls):
383
+ def dataclass_uses_kw_only(cls) -> bool:
384
return any(
385
field.init and field.kw_only for field in dataclasses.fields(cls))
386
0 commit comments