Skip to content

Comments

Add type annotations to providers/vertica#9936

Merged
mik-laj merged 1 commit intoapache:masterfrom
cjsekl:typing_coverage
Jul 23, 2020
Merged

Add type annotations to providers/vertica#9936
mik-laj merged 1 commit intoapache:masterfrom
cjsekl:typing_coverage

Conversation

@cjsekl
Copy link
Contributor

@cjsekl cjsekl commented Jul 22, 2020

Related: #9708
Adding type annotations to providers/vertica.

Return verticaql connection object
"""
conn = self.get_connection(self.vertica_conn_id) # pylint: disable=no-member
conn = self.get_connection(self.vertica_conn_id) # type: ignore # pylint: disable=no-member
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is ignored by pylint and mypy because VerticaHook.vertica_conn_id overrides DbApiHook.conn_name_attr.

Is there a better way to handle this than ignoring?

@mik-laj mik-laj merged commit 867bc44 into apache:master Jul 23, 2020
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.

2 participants