We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a7af812 commit 053feb1Copy full SHA for 053feb1
pre_commit_hooks/no_commit_to_branch.py
@@ -2,7 +2,7 @@
2
3
import argparse
4
import re
5
-from typing import FrozenSet
+from typing import AbstractSet
6
from typing import Optional
7
from typing import Sequence
8
@@ -11,7 +11,7 @@
11
12
13
def is_on_branch(protected, patterns=frozenset()):
14
- # type: (FrozenSet[str], FrozenSet[str]) -> bool
+ # type: (AbstractSet[str], AbstractSet[str]) -> bool
15
try:
16
ref_name = cmd_output('git', 'symbolic-ref', 'HEAD')
17
except CalledProcessError:
0 commit comments