Skip to content

Commit

Permalink
docs: add docstring to _should_ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
cpcloud committed Nov 29, 2021
1 parent 74623dc commit 52225ad
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions protoletariat/fdsetgen.py
Expand Up @@ -21,6 +21,7 @@ def _remove_proto_suffix(name: str) -> str:


def _should_ignore(fd_name: str, patterns: Sequence[str]) -> bool:
"""Return whether `fd_name` should be ignored according to `patterns`."""
return any(fnmatch.fnmatchcase(fd_name, pattern) for pattern in patterns)


Expand Down

0 comments on commit 52225ad

Please sign in to comment.