Skip to content

Add override annotations to catalog and file IO implementations#3359

Open
adminlip wants to merge 1 commit into
apache:mainfrom
adminlip:fix/add-typing-override
Open

Add override annotations to catalog and file IO implementations#3359
adminlip wants to merge 1 commit into
apache:mainfrom
adminlip:fix/add-typing-override

Conversation

@adminlip
Copy link
Copy Markdown

Adds typing.override annotations to concrete catalog and file IO implementations so overridden base-class methods are explicit and can be checked by type tooling on supported Python versions. The change covers the SQL catalog methods and the PyArrow/Fsspec file implementations referenced in the issue while keeping the diff limited to those implementation files.

Closes #1310

@rambleraptor
Copy link
Copy Markdown
Contributor

Thanks a lot for this PR! It looks like this method is only supported in Python 3.12+. We're still supporting 3.10 + 3.11, so I don't think we can merge this in.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add @typing.override to functions

2 participants