From 23a41fe937f1db777cc1b8afa8098bdf541ffca0 Mon Sep 17 00:00:00 2001 From: lb1107039128 Date: Mon, 25 Dec 2023 17:04:56 +0800 Subject: [PATCH] fix typo: annoation -> annotation (#636) Signed-off-by: lb1107039128 --- 0001-fix-typo-annoation-annotation-636.patch | 25 ++++++++++++++++++++ pyflakes.spec | 6 ++++- 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 0001-fix-typo-annoation-annotation-636.patch diff --git a/0001-fix-typo-annoation-annotation-636.patch b/0001-fix-typo-annoation-annotation-636.patch new file mode 100644 index 0000000..ab82712 --- /dev/null +++ b/0001-fix-typo-annoation-annotation-636.patch @@ -0,0 +1,25 @@ +From 2e2dfb186569faed40fc93fad2ebf8c5e4b80301 Mon Sep 17 00:00:00 2001 +From: Yusuke Hayashi +Date: Sat, 22 May 2021 12:34:08 +0900 +Subject: [PATCH] fix typo: annoation -> annotation (#636) + +--- + pyflakes/test/test_type_annotations.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/pyflakes/test/test_type_annotations.py b/pyflakes/test/test_type_annotations.py +index f131034..6a66bcd 100644 +--- a/pyflakes/test/test_type_annotations.py ++++ b/pyflakes/test/test_type_annotations.py +@@ -531,7 +531,7 @@ class TestTypeAnnotations(TestCase): + def test_type_cast_literal_str_to_str(self): + # Checks that our handling of quoted type annotations in the first + # argument to `cast` doesn't cause issues when (only) the _second_ +- # argument is a literal str which looks a bit like a type annoation. ++ # argument is a literal str which looks a bit like a type annotation. + self.flakes(""" + from typing import cast + +-- +2.42.0.windows.2 + diff --git a/pyflakes.spec b/pyflakes.spec index ae2161b..6febd0a 100644 --- a/pyflakes.spec +++ b/pyflakes.spec @@ -1,6 +1,6 @@ Name: pyflakes Version: 2.3.1 -Release: 4 +Release: 5 Summary: A simple program which checks Python source files for errors License: MIT URL: https://github.com/PyCQA/pyflakes @@ -11,6 +11,7 @@ BuildRequires: python2-devel >= 2.7 python2-setuptools Patch0001: 0001-remove-old-and-unused-tracing-code-625.patch Patch0002: 0001-add-support-for-match-statement-630.patch Patch0003: 0001-Detect-typing-module-attributes-with-import-typing-a.patch +Patch0004: 0001-fix-typo-annoation-annotation-636.patch %description This is a safe program which analyze programs and detects various errors.\ @@ -94,6 +95,9 @@ ln -s pyflakes-3.1 %{buildroot}%{_mandir}/man1/pyflakes.1 %changelog +* Mon Dec 25 2023 liubo - 2.3.1-5 +- fix typo: annoation -> annotation (#636) + * Mon Dec 18 2023 liubo - 2.3.1-4 - Detect typing module attributes with 'import typing as