You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Proximally, I was trying to use the Runner API, like so:
with Runner(my_flow.__file__, pylint=False).run(
job_ids=["E10288"], # This is a JSONType parameter.
max_workers=1,
) as running:
print(f"{running.run} completed")
That throws up a:
TypeError
This cell raised an exception: TypeError('ForwardRef._evaluate() missing 1 required keyword-only argument: 'recursive_guard'')
It looks like this issue showed up in typeguard a few months back, and appears to have been fixed in their 4.3.0: agronholm/typeguard#466
I'd be glad to contribute a PR here, having benefited much from Metaflow. If the right change is bigger than this patch, perhaps because it entails upgrading the vendored typeguard dependency, I'm game to help, but wouldn't be offended if it's better left to someone more familiar with the codebase.
Thanks for making metaflow!
Setup
metaflow 2.13.7
python 3.12.5
The text was updated successfully, but these errors were encountered:
Glad to. To clarify, would you prefer that the PR patch this line "in the small" (with accompanying test)? Or is the appropriate path here to bump the typeguard dependency to 4.30+? Thanks.
Proximally, I was trying to use the Runner API, like so:
That throws up a:
Which stands to reason, because in cpython recursive_guard (now) appears to be keyword-only in
ForwardRef._evaluate
. (And ForwardRef._evaluate is deprecated, looks like...) https://github.com/python/cpython/blob/4e47e05045b7b05c7e166bda2afd60191314e326/Lib/annotationlib.py#L180And metaflow's vendored-in typeguard lib is calling it without the kwarg: https://github.com/Netflix/metaflow/blob/master/metaflow/_vendor/typeguard/_utils.py#L18
When I patch that line as follows, it works, in the sense that the error above disappears and my flow runs:
It looks like this issue showed up in typeguard a few months back, and appears to have been fixed in their 4.3.0: agronholm/typeguard#466
I'd be glad to contribute a PR here, having benefited much from Metaflow. If the right change is bigger than this patch, perhaps because it entails upgrading the vendored typeguard dependency, I'm game to help, but wouldn't be offended if it's better left to someone more familiar with the codebase.
Thanks for making metaflow!
Setup
The text was updated successfully, but these errors were encountered: