Skip to content

Commit ec700ab

Browse files
Corrected typing declarations.
1 parent 9645d4f commit ec700ab

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed

doc/src/release_notes.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,15 @@ python-oracledb Release Notes
77

88
For deprecations, see :ref:`Deprecations <deprecations>`.
99

10+
oracledb 2.0.1 (TBD)
11+
--------------------
12+
13+
Common Changes
14+
++++++++++++++
15+
16+
#) Corrected typing declarations.
17+
18+
1019
oracledb 2.0.0 (December 2023)
1120
------------------------------
1221

src/oracledb/connection.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# -----------------------------------------------------------------------------
2-
# Copyright (c) 2020, 2023, Oracle and/or its affiliates.
2+
# Copyright (c) 2020, 2024, Oracle and/or its affiliates.
33
#
44
# This software is dual-licensed to you under the Universal Permissive License
55
# (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl and Apache License
@@ -1747,7 +1747,7 @@ def connect_async(
17471747
ssl_context: Any = None,
17481748
sdu: int = 8192,
17491749
handle: int = 0,
1750-
) -> Connection:
1750+
) -> AsyncConnection:
17511751
"""
17521752
Factory function which creates a connection to the database and returns it.
17531753

utils/templates/connection.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# -----------------------------------------------------------------------------
2-
# Copyright (c) 2020, 2023, Oracle and/or its affiliates.
2+
# Copyright (c) 2020, 2024, Oracle and/or its affiliates.
33
#
44
# This software is dual-licensed to you under the Universal Permissive License
55
# (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl and Apache License
@@ -1515,7 +1515,7 @@ def connect_async(
15151515
conn_class: Type[AsyncConnection] = AsyncConnection,
15161516
params: ConnectParams = None,
15171517
# {{ args_with_defaults }}
1518-
) -> Connection:
1518+
) -> AsyncConnection:
15191519
"""
15201520
Factory function which creates a connection to the database and returns it.
15211521

0 commit comments

Comments
 (0)