Skip to content

Commit 40ac692

Browse files
committed
Add is_topic check to SchemeEntryType
1 parent 008197c commit 40ac692

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

ydb/scheme.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,14 @@ def is_resource_pool(entry):
139139
"""
140140
return entry == SchemeEntryType.RESOURCE_POOL
141141

142+
@staticmethod
143+
def is_topic(entry):
144+
"""
145+
:param entry: A scheme entry to check
146+
:return: True if scheme entry is a topic and False otherwise
147+
"""
148+
return entry == SchemeEntryType.TOPIC
149+
142150

143151
class SchemeEntry(object):
144152
__slots__ = (

0 commit comments

Comments
 (0)