@@ -50,7 +50,7 @@ for example, a package and its resources can be imported from a zip file using
5050``get_resource_reader(fullname) `` method as specified by
5151:class: `importlib.resources.abc.ResourceReader `.
5252
53- .. data :: Anchor
53+ .. class :: Anchor
5454
5555 Represents an anchor for resources, either a :class: `module object
5656 <types.ModuleType> ` or a module name as a string. Defined as
@@ -63,7 +63,7 @@ for example, a package and its resources can be imported from a zip file using
6363 (think files). A Traversable may contain other containers (think
6464 subdirectories).
6565
66- *anchor * is an optional :data : `Anchor `. If the anchor is a
66+ *anchor * is an optional :class : `Anchor `. If the anchor is a
6767 package, resources are resolved from that package. If a module,
6868 resources are resolved adjacent to that module (in the same package
6969 or the package root). If the anchor is omitted, the caller's module
@@ -72,10 +72,10 @@ for example, a package and its resources can be imported from a zip file using
7272 .. versionadded :: 3.9
7373
7474 .. versionchanged :: 3.12
75- " package" parameter was renamed to " anchor". " anchor" can now
75+ * package * parameter was renamed to * anchor *. * anchor * can now
7676 be a non-package module and if omitted will default to the caller's
77- module. " package" is still accepted for compatibility but will raise
78- a DeprecationWarning. Consider passing the anchor positionally or
77+ module. * package * is still accepted for compatibility but will raise
78+ a :exc: ` DeprecationWarning ` . Consider passing the anchor positionally or
7979 using ``importlib_resources >= 5.10 `` for a compatible interface
8080 on older Pythons.
8181
@@ -96,7 +96,7 @@ for example, a package and its resources can be imported from a zip file using
9696 .. versionadded :: 3.9
9797
9898 .. versionchanged :: 3.12
99- Added support for `` traversable `` representing a directory.
99+ Added support for * traversable * representing a directory.
100100
101101
102102Deprecated functions
0 commit comments