From c317d6fd310796b365e9af096e992facb3874633 Mon Sep 17 00:00:00 2001 From: Camille <78221213+clatapie@users.noreply.github.com> Date: Wed, 27 Sep 2023 16:40:42 +0200 Subject: [PATCH] fix: encoding issue in numpydoc-validation --- numpydoc/validate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/numpydoc/validate.py b/numpydoc/validate.py index e98d3851..0a67d3a1 100644 --- a/numpydoc/validate.py +++ b/numpydoc/validate.py @@ -136,7 +136,7 @@ def extract_ignore_validation_comments( """ numpydoc_ignore_comments = {} try: - file = open(filepath) + file = open(filepath, encoding="utf-8") except (OSError, TypeError): # can be None, nonexistent, or unreadable return numpydoc_ignore_comments with file: