<#2744 refactor: Remove support for file paths in ...
# meltano-repo-activity
g
#2744 refactor: Remove support for file paths in plugin and stream constructors Issue created by edgarrmondragon Namely: sdk/singer_sdk/plugin_base.py Lines 145 to 146 in</meltano/sdk/commit/62c03bbce9e2afee5e26810a4a21b74ab753b315|62c03bb> | elif isinstance(config, (str, PurePath)): | | ----------------------------------------- | | config_dict = read_json_file(config) | sdk/singer_sdk/streams/core.py Lines 154 to 159 in</meltano/sdk/commit/62c03bbce9e2afee5e26810a4a21b74ab753b315|62c03bb> | if isinstance(schema, (PathLike, str)): | | ------------------------------------------------------------- | | if not Path(schema).is_file(): | | msg = f"Could not find schema file '{self.schema_filepath}'." | | raise FileNotFoundError(msg) | | | | self._schema_filepath = Path(schema) | sdk/singer_sdk/tap_base.py Lines 103 to 104 in</meltano/sdk/commit/62c03bbce9e2afee5e26810a4a21b74ab753b315|62c03bb> | elif catalog is not None: | | ---------------------------------------------------------------- | | self._input_catalog = Catalog.from_dict(read_json_file(catalog)) | sdk/singer_sdk/tap_base.py Lines 115 to 116 in</meltano/sdk/commit/62c03bbce9e2afee5e26810a4a21b74ab753b315|62c03bb> | elif state: | | ---------------------------------- | | state_dict = read_json_file(state) | Related: • #2743 meltano/sdk