Skip to content

Commit 65e5e4d

Browse files
committed
Fix comment.
1 parent b76a66a commit 65e5e4d

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

scripts/generate_connection_wrapper_stubs.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,7 @@ def create_definition(name, method, overloaded: bool) -> str:
8686
definition += f" -> {method['return']}: ..."
8787
return definition
8888

89-
# We have "duplicate" methods, which are overloaded
90-
# maybe we should add @overload to these instead, but this is easier
91-
# We keep note of them to add the @overload decorator.
89+
# We have "duplicate" methods, which are overloaded.
9290
overloaded_methods: set[str] = {m for m in connection_methods if isinstance(m['name'], list)}
9391

9492
body = []
@@ -104,7 +102,6 @@ def create_definition(name, method, overloaded: bool) -> str:
104102
method['kwargs'].append({'name': 'connection', 'type': 'DuckDBPyConnection', 'default': '...'})
105103

106104
for name in names:
107-
body.append(create_definition(name, method, name in overloaded_methods))
108105

109106
# ---- End of generation code ----
110107

0 commit comments

Comments
 (0)