Skip to content

Commit 9023fa4

Browse files
committed
Always assert match is not None.
1 parent 826195a commit 9023fa4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/dotenv/main.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,7 @@ def is_surrounded_by(string, char):
8585
def parse_binding(string, position):
8686
# type: (Text, int) -> Tuple[Binding, int]
8787
match = _binding.match(string, position)
88-
if TYPE_CHECKING:
89-
assert match is not None
88+
assert match is not None
9089
(matched, key, value) = match.groups()
9190
if key is None or value is None:
9291
key = None

0 commit comments

Comments
 (0)