<#3621 refactor: Fix MRO of `schema` stream attrib...
# meltano-repo-activity
g
#3621 refactor: Fix MRO of `schema` stream attribute Pull request opened by edgarrmondragon on <!date^1778039446^{date_short}|2026-05-06T03:50:46Z> Summary by Sourcery Refactor stream schema handling to use a descriptor-based
StreamSchema
on the base
Stream
class and fix method resolution order so schema access works consistently for instances and subclasses. New Features: • Introduce a class-level
schema
descriptor on
Stream
backed by
StreamSchema
and a fallback instance schema descriptor. Bug Fixes: • Ensure the
schema
attribute on streams correctly resolves via MRO and falls back to instance-level schema when no class-level schema is defined. • Prevent accidental mutation of stream schema by making the
schema
descriptor read-only on instances and raising an error if no schema source is configured. Enhancements: • Add type-safe overloads and
Self
typing to the
StreamSchema
descriptor for better static type checking. • Improve error messages when schemas are missing for streams or when no schema source is configured. • Simplify SQLStream and filesystem stream schema access by relying on the unified descriptor mechanism instead of custom properties. meltano/sdk