Skip to content

Commit 8b3792f

Browse files
committed
Apply final automatic formatting and style fixes
1 parent 5f04ce2 commit 8b3792f

2 files changed

Lines changed: 5 additions & 8 deletions

File tree

.pre-commit-config.yaml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,4 @@ repos:
5454
- --explicit-package-bases
5555
- --ignore-missing-imports
5656
- --install-types
57-
- --non-interactive
58-
59-
- repo: https://github.com/pre-commit/mirrors-prettier
60-
rev: v4.0.0-alpha.8
61-
hooks:
62-
- id: prettier
63-
types_or: [toml, yaml]
57+
- --non-interactive

data_structures/arrays/kth_largest_element.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
from typing import List, Union
33

44

5-
def kth_largest_element(arr: List[Union[int, float, str]], k: int) -> Union[int, float, str]:
5+
def kth_largest_element(
6+
arr: List[Union[int, float, str]], k: int
7+
) -> Union[int, float, str]:
68
"""
79
Finds the kth largest element in an array using a heap.
810
@@ -43,4 +45,5 @@ def kth_largest_element(arr: List[Union[int, float, str]], k: int) -> Union[int,
4345

4446
if __name__ == "__main__":
4547
import doctest
48+
4649
doctest.testmod()

0 commit comments

Comments
 (0)