From 11c053112162fa30a766e2ada398d6ed81908061 Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Mon, 8 Nov 2021 19:51:25 -0500 Subject: [PATCH] Add test for FastPath on empty path. Ref #353. --- importlib_metadata/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/importlib_metadata/__init__.py b/importlib_metadata/__init__.py index 95427cb2..df7763c3 100644 --- a/importlib_metadata/__init__.py +++ b/importlib_metadata/__init__.py @@ -760,6 +760,9 @@ class FastPath: """ Micro-optimized class for searching a path for children. + + >>> FastPath('').children() + ['...'] """ @functools.lru_cache() # type: ignore