Skip to content

[BUG]: SparkFlexConfig.apply method overloads are unavailable #68

@mythgarr

Description

@mythgarr

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions