Skip to content

Commit

Permalink
fix: fix PYI024 lint rule violation
Browse files Browse the repository at this point in the history
  • Loading branch information
rzhao271 committed Aug 26, 2023
1 parent f6af11a commit 6dbe836
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 4 additions & 2 deletions pylib/gyp/msvs_emulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
build systems, primarily ninja.
"""

import collections
import os
import re
import subprocess
import sys
import typing

from gyp.common import OrderedSet
import gyp.MSVSUtil
Expand Down Expand Up @@ -935,7 +935,9 @@ def BuildCygwinBashCommandLine(self, args, path_to_base):
)
return cmd

RuleShellFlags = collections.namedtuple("RuleShellFlags", ["cygwin", "quote"])
class RuleShellFlags(typing.NamedTuple):
cygwin: int
quote: int

def GetRuleShellFlags(self, rule):
"""Return RuleShellFlags about how the given rule should be run. This
Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ ignore = [
"PLR5501",
"PLW0603",
"PLW2901",
"PYI024",
"RUF005",
"RUF012",
"UP031",
Expand Down

0 comments on commit 6dbe836

Please sign in to comment.