Skip to content

Commit bb63fea

Browse files
committed
Add type annotations for oracle.
1 parent 29e4b4b commit bb63fea

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

oracle/testcontainers/oracle/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,17 @@ class OracleDbContainer(DbContainer):
1717
... result = e.execute("select * from V$VERSION")
1818
"""
1919

20-
def __init__(self, image="wnameless/oracle-xe-11g-r2:latest", **kwargs):
20+
def __init__(self, image: str = "wnameless/oracle-xe-11g-r2:latest", **kwargs) -> None:
2121
super(OracleDbContainer, self).__init__(image=image, **kwargs)
2222
self.container_port = 1521
2323
self.with_exposed_ports(self.container_port)
2424
self.with_env("ORACLE_ALLOW_REMOTE", "true")
2525

26-
def get_connection_url(self):
26+
def get_connection_url(self) -> str:
2727
return super()._create_connection_url(
2828
dialect="oracle", username="system", password="oracle", port=self.container_port,
2929
db_name="xe"
3030
)
3131

32-
def _configure(self):
32+
def _configure(self) -> None:
3333
pass

0 commit comments

Comments
 (0)