Skip to content

Commit 6dae91c

Browse files
Avoid using kw_only in dataclasses due to python3.8 in juju 3.1.7
1 parent ad8b129 commit 6dae91c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/relations/tls.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ def _generate_private_key() -> str:
4444
return tls_certificates.generate_private_key().decode("utf-8")
4545

4646

47-
@dataclasses.dataclass(kw_only=True)
47+
# TODO python3.10 min version: Add `(kw_only=True)`
48+
@dataclasses.dataclass
4849
class _Relation:
4950
"""Relation to TLS certificate provider"""
5051

0 commit comments

Comments
 (0)