Skip to content

Commit 053feb1

Browse files
committed
Use AbstractSet to appease mypy
1 parent a7af812 commit 053feb1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pre_commit_hooks/no_commit_to_branch.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import argparse
44
import re
5-
from typing import FrozenSet
5+
from typing import AbstractSet
66
from typing import Optional
77
from typing import Sequence
88

@@ -11,7 +11,7 @@
1111

1212

1313
def is_on_branch(protected, patterns=frozenset()):
14-
# type: (FrozenSet[str], FrozenSet[str]) -> bool
14+
# type: (AbstractSet[str], AbstractSet[str]) -> bool
1515
try:
1616
ref_name = cmd_output('git', 'symbolic-ref', 'HEAD')
1717
except CalledProcessError:

0 commit comments

Comments
 (0)