From 5094770405372098081110764843950364933904 Mon Sep 17 00:00:00 2001 From: Glenn Smith Date: Tue, 20 May 2025 18:34:53 -0400 Subject: Add TypeContainer::GetEmptyTypeContainer --- python/typecontainer.py | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'python/typecontainer.py') diff --git a/python/typecontainer.py b/python/typecontainer.py index 1a62dbe7..b4a9e794 100644 --- a/python/typecontainer.py +++ b/python/typecontainer.py @@ -66,6 +66,16 @@ class TypeContainer: def __repr__(self): return f"" + @classmethod + def empty(cls): + """ + Get an empty Type Container which contains no types (immutable) + Useful when a function requires a Type Container but you don't have one. + :return: Empty type container + """ + handle = core.BNGetEmptyTypeContainer() + return TypeContainer(handle=handle) + @property def id(self) -> str: """ -- cgit v1.3.1