diff options
| author | Glenn Smith <glenn@vector35.com> | 2022-05-18 20:14:43 -0400 |
|---|---|---|
| committer | Glenn Smith <glenn@vector35.com> | 2022-05-18 20:18:36 -0400 |
| commit | 368fd70c259a08fd317237f4b3325998915d7ee1 (patch) | |
| tree | 5ffea32657dd740141dbe4e4b449b5e40e11ec33 /python/types.py | |
| parent | 45f636f30c68b7bf6b17ef18ac877fc334e33a07 (diff) | |
Allow QualifiedName.escape() to accept all of QualifiedNameType
Diffstat (limited to 'python/types.py')
| -rw-r--r-- | python/types.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/python/types.py b/python/types.py index e00b3408..3438af2b 100644 --- a/python/types.py +++ b/python/types.py @@ -156,12 +156,12 @@ class QualifiedName: self._name = value @staticmethod - def escape(name: str, escaping: TokenEscapingType) -> str: - return core.BNEscapeTypeName(name, escaping) + def escape(name: QualifiedNameType, escaping: TokenEscapingType) -> str: + return core.BNEscapeTypeName(str(QualifiedName(name)), escaping) @staticmethod - def unescape(name: str, escaping: TokenEscapingType) -> str: - return core.BNUnescapeTypeName(name, escaping) + def unescape(name: QualifiedNameType, escaping: TokenEscapingType) -> str: + return core.BNUnescapeTypeName(str(QualifiedName(name)), escaping) @dataclass(frozen=True) |
