File tree Expand file tree Collapse file tree 3 files changed +3
-6
lines changed
Expand file tree Collapse file tree 3 files changed +3
-6
lines changed Original file line number Diff line number Diff line change 99
1010 - repo : https://github.com/astral-sh/ruff-pre-commit
1111 # Ruff version.
12- rev : v0.11.12
12+ rev : v0.12.5
1313 hooks :
1414 - id : ruff
1515 args : [ --fix ]
Original file line number Diff line number Diff line change @@ -118,6 +118,7 @@ ignore = [
118118 " N815" , # Variable in class scope should not be mixedCase
119119 " N816" , # Variable in global scope should not be mixedCase
120120 " PIE796" , # Enum contains duplicate value: `str`
121+ " PLC0415" , # Imports outside top-level
121122 " PLR0911" , # Too many return statements
122123 " PLR0912" , # Too many branches
123124 " PLR0913" , # Too many arguments in function definition
Original file line number Diff line number Diff line change 44"""
55
66from collections .abc import Iterable
7- from typing import TypeVar
87
98
109__all__ = ("sorted_tuple" ,)
1110
1211
13- T = TypeVar ("T" )
14-
15-
1612##
1713# Converters
1814##
1915
2016
21- def sorted_tuple (iterable : Iterable [T ]) -> tuple [T , ...]:
17+ def sorted_tuple [ T ] (iterable : Iterable [T ]) -> tuple [T , ...]:
2218 """
2319 Sort and convert an iterable into a tuple.
2420 """
You can’t perform that action at this time.
0 commit comments