Skip to content

Commit c823c67

Browse files
authored
Merge pull request #538 from digital-asset/python-query-interfaces-fixes
python: Package loading and interface fixes
2 parents 4052b13 + 8a0f587 commit c823c67

18 files changed

+466
-622
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
8.4.3
1+
8.5.0

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
[tool.poetry]
55
name = "dazl"
6-
version = "8.4.3"
6+
version = "8.5.0"
77
description = "high-level Ledger API client for Daml ledgers"
88
license = "Apache-2.0"
99
authors = ["Davin K. Tanabe <davin.tanabe@digitalasset.com>"]

python/dazl/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,4 @@
5757
pass
5858

5959

60-
__version__ = "8.4.3"
60+
__version__ = "8.5.0"

python/dazl/damlast/daml_lf_1.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ class _Name:
177177
178178
This implementation powers all of a TypeConName, TypeSynName, and ValName.
179179
180-
In dazl 7.0.0, these will become `NewType(str)`, so making assumptions about the structure of
180+
In dazl 9.0.0, these will become `NewType(str)`, so making assumptions about the structure of
181181
this type should be avoided, and accessor methods should be instead used for callers that care
182182
about the structure of these names.
183183
"""

python/dazl/damlast/errors.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
if TYPE_CHECKING:
1919
from . import daml_lf_1
2020

21-
__all__ = ["PackageNotFoundError", "NameNotFoundError"]
21+
__all__ = ["PackageNotFoundError", "NameNotFoundError", "AmbiguousMatchError"]
2222

2323

2424
class PackageNotFoundError(DazlError):
@@ -40,8 +40,7 @@ def __repr__(self):
4040

4141
class NameNotFoundError(DazlError):
4242
"""
43-
Raised when a :class:`daml_lf_1.DefDataType`, :class:`daml_lf_1.DefValue`, or
44-
:class:`daml_lf_1.DefTemplate` of a specific name was expected, but could not be found.
43+
Raised when a :class:`daml_lf_1.DefDataType`, :class:`daml_lf_1.DefValue`, :class:`daml_lf_1.DefTemplate`, or :class:`daml_lf_1.DefInterface` of a specific name was expected, but could not be found.
4544
4645
Typically this error is raised when the *package ID* is valid, but the name is not. Because
4746
package IDs are immutable, this error is not normally retryable.
@@ -50,3 +49,9 @@ class NameNotFoundError(DazlError):
5049
def __init__(self, ref: Any) -> None:
5150
super().__init__(ref)
5251
self.ref = ref
52+
53+
54+
class AmbiguousMatchError(DazlError):
55+
"""
56+
Raised when a _single_ :class:`daml_lf_1.DefDataType`, :class:`daml_lf_1.DefValue`, :class:`daml_lf_1.DefTemplate`, or :class:`daml_lf_1.DefInterface` of a specific name was expected, but multiple matches were found.
57+
"""

0 commit comments

Comments
 (0)