fix typo: annoation -> annotation (#636)
Signed-off-by: lb1107039128 <liubo1@xfusion.com>
This commit is contained in:
parent
76364463bd
commit
8a3ba5c12a
25
0001-fix-typo-annoation-annotation-636.patch
Normal file
25
0001-fix-typo-annoation-annotation-636.patch
Normal file
@ -0,0 +1,25 @@
|
||||
From 2e2dfb186569faed40fc93fad2ebf8c5e4b80301 Mon Sep 17 00:00:00 2001
|
||||
From: Yusuke Hayashi <yusuke8h@gmail.com>
|
||||
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
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
Pyflakes A simple program which checks Python source files for errors.Pyflakes
|
||||
Name: python-pyflakes
|
||||
Version: 2.3.1
|
||||
Release: 2
|
||||
Release: 3
|
||||
Summary: passive checker of Python programs
|
||||
License: MIT
|
||||
URL: https://github.com/PyCQA/pyflakes
|
||||
@ -13,6 +13,7 @@ BuildArch: noarch
|
||||
%{common_desc}
|
||||
|
||||
Patch0001: 0001-Detect-typing-module-attributes-with-import-typing-a.patch
|
||||
Patch0002: 0001-fix-typo-annoation-annotation-636.patch
|
||||
|
||||
%package -n python3-pyflakes
|
||||
Summary: passive checker of Python programs
|
||||
@ -78,6 +79,9 @@ mv %{buildroot}/doclist.lst .
|
||||
%{_docdir}/*
|
||||
|
||||
%changelog
|
||||
* Fri Jan 19 2024 liubo <liubo1@xfusion.com> - 2.3.1-3
|
||||
- fix typo: annoation -> annotation (#636)
|
||||
|
||||
* Tue Nov 7 2023 liubo <liubo1@xfusion.com> - 2.3.1-2
|
||||
- Detect typing module attributes with 'import typing as <name>'
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user