summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--data/freedesktop.org.xml.in1
-rw-r--r--tests/mime-detection/list1
-rw-r--r--tests/mime-detection/test.pyi1
3 files changed, 3 insertions, 0 deletions
diff --git a/data/freedesktop.org.xml.in b/data/freedesktop.org.xml.in
index cfa4b4c1..5bfa2cbb 100644
--- a/data/freedesktop.org.xml.in
+++ b/data/freedesktop.org.xml.in
@@ -6405,6 +6405,7 @@ command to generate the output files.
<glob pattern="*.py" weight="50"/><!-- lower priority than in text/x-python -->
<glob pattern="*.py3" weight="60"/>
<glob pattern="*.py3x" weight="60"/>
+ <glob pattern="*.pyi" weight="60"/>
</mime-type>
<mime-type type="text/x-python">
<comment>Python script</comment>
diff --git a/tests/mime-detection/list b/tests/mime-detection/list
index ee124de0..a9079f92 100644
--- a/tests/mime-detection/list
+++ b/tests/mime-detection/list
@@ -387,6 +387,7 @@ test_issue127.py text/x-python ox
# Python 3 script
test3.py text/x-python3 x
test.py3 text/x-python3
+test.pyi text/x-python3 ox
# PySide
pyside.py text/x-python
# SageMath
diff --git a/tests/mime-detection/test.pyi b/tests/mime-detection/test.pyi
new file mode 100644
index 00000000..d02057be
--- /dev/null
+++ b/tests/mime-detection/test.pyi
@@ -0,0 +1 @@
+def func() -> None: ...