-
Notifications
You must be signed in to change notification settings - Fork 18
Closed
Description
Problem description
The apply methods defined on SparkBaseConfig cannot be invoked on a SparkFlexConfig object. Calling apply(EncoderConfig()) for example results in a runtime exception:
TypeError: apply(): incompatible function arguments. The following argument types are supported:
1. (self: rev._rev.SparkFlexConfig, config: rev._rev.SparkFlexConfig) -> rev._rev.SparkFlexConfig
2. (self: rev._rev.SparkFlexConfig, config: rev._rev.ExternalEncoderConfig) -> rev._rev.SparkFlexConfig
As a workaround the SparkBaseConfig method can be called explicitly:
SparkBaseConfig.apply(config, EncoderConfig())
Operating System
Windows
Installed Python Packages
No response
Reproducible example code
from rev import SparkFlexConfig, EncoderConfig
config = SparkFlexConfig()
config.apply(EncoderConfig())
Metadata
Metadata
Assignees
Labels
No labels