summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Schubert <contact@benschubert.me>2020-08-29 10:45:41 +0100
committerbst-marge-bot <marge-bot@buildstream.build>2020-08-30 15:36:34 +0000
commite5c72f4de5ba8fdb96dff6255c48c0e5db44b8d7 (patch)
treeb6c65207adcb24d1802b971158fc802974de8159
parentc50e755911243d6110256a6fc7f011f4a2a323f4 (diff)
downloadbuildstream-e5c72f4de5ba8fdb96dff6255c48c0e5db44b8d7.tar.gz
_utils.pyi: Add type information for _utils.pyx
-rw-r--r--setup.cfg2
-rw-r--r--src/buildstream/_utils.pyi1
2 files changed, 2 insertions, 1 deletions
diff --git a/setup.cfg b/setup.cfg
index 6d35c9de5..a6b546042 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -33,7 +33,7 @@ ignore_missing_imports=True
# Ignore missing stubs for Cythonized modules.
# In future, these should be re-enabled by writing stubs for them.
-[mypy-buildstream.node,buildstream._types,buildstream._utils]
+[mypy-buildstream.node,buildstream._types]
ignore_missing_imports=True
# Ignore issues with generated files and vendored code
diff --git a/src/buildstream/_utils.pyi b/src/buildstream/_utils.pyi
new file mode 100644
index 000000000..458437281
--- /dev/null
+++ b/src/buildstream/_utils.pyi
@@ -0,0 +1 @@
+def url_directory_name(url: str) -> str: ...