MCPcopy Index your code
hub / github.com/mongodb/mongo-python-driver / get_async_methods

Function get_async_methods

tools/convert_test_to_async.py:78–90  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

76
77
78def get_async_methods() -> set[str]:
79 result: set[str] = set()
80 for x in async_classes:
81 methods = {
82 k
83 for k, v in vars(x).items()
84 if callable(v)
85 and not isinstance(v, classmethod)
86 and inspect.iscoroutinefunction(v)
87 and v.__name__[0] != "_"
88 }
89 result = result | methods
90 return result
91
92
93async_methods = get_async_methods()

Callers 1

Calls 1

itemsMethod · 0.80

Tested by

no test coverage detected