8000 Use different docstrings for overloaded methods · PyGreSQL/PyGreSQL@17c42af · GitHub
[go: up one dir, main page]

Skip to content

Commit 17c42af

Browse files
committed
Use different docstrings for overloaded methods
1 parent c70b726 commit 17c42af

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pg/db.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,12 @@ def __init__(self, dbname: str | None = None,
4242
opt: str | None = None,
4343
user: str | None = None, passwd: str | None = None,
4444
nowait: bool = False) -> None:
45+
"""Create a new connection using the specified parameters."""
4546
...
4647

4748
@ 535D overload
4849
def __init__(self, db: Connection | DB | DbApi2Connection) -> None:
50+
"""Create a connection wrapper based on an existing connection."""
4951
...
5052

5153
def __init__(self, *args: Any, **kw: Any) -> None:

0 commit comments

Comments
 (0)
0