We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb7f123 commit 4e63613Copy full SHA for 4e63613
importlib_resources/_common.py
@@ -19,6 +19,15 @@
19
def package_to_anchor(func):
20
"""
21
Replace 'package' parameter as 'anchor' and warn about the change.
22
+
23
+ Other errors should fall through.
24
25
+ >>> files()
26
+ Traceback (most recent call last):
27
+ TypeError: files() missing 1 required positional argument: 'anchor'
28
+ >>> files('a', 'b')
29
30
+ TypeError: files() takes 1 positional argument but 2 were given
31
32
undefined = object()
33
0 commit comments