Skip to content

Commit

Permalink
replace super() with direct class references
Browse files Browse the repository at this point in the history
  • Loading branch information
Ken Payne committed Sep 15, 2022
1 parent e24e94d commit 7f7b6ee
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ class {{ cookiecutter.source_name }}Connector(SQLConnector):
Developers may optionally add custom logic before calling the default
implementation inherited from the base class.
"""
# Optionally, add custom logic before calling the super().
# Optionally, add custom logic before calling the parent SQLConnector method.
# You may delete this method if overrides are not needed.
return super().to_jsonschema_type(sql_type)
return SQLConnector.to_jsonschema_type(sql_type)

@staticmethod
def to_sql_type(jsonschema_type: dict) -> sqlalchemy.types.TypeEngine:
Expand All @@ -40,9 +40,9 @@ class {{ cookiecutter.source_name }}Connector(SQLConnector):
Developers may optionally add custom logic before calling the default
implementation inherited from the base class.
"""
# Optionally, add custom logic before calling the super().
# Optionally, add custom logic before calling the parent SQLConnector method.
# You may delete this method if overrides are not needed.
return super().to_sql_type(jsonschema_type)
return SQLConnector.to_sql_type(jsonschema_type)


class {{ cookiecutter.source_name }}Stream(SQLStream):
Expand Down

0 comments on commit 7f7b6ee

Please sign in to comment.