Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Always assert match is not None.
  • Loading branch information
qnighy committed Mar 17, 2019
commit 9023fa49c141dcf9e0fcd7309bd94f15b462866e
3 changes: 1 addition & 2 deletions src/dotenv/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,7 @@ def is_surrounded_by(string, char):
def parse_binding(string, position):
# type: (Text, int) -> Tuple[Binding, int]
match = _binding.match(string, position)
if TYPE_CHECKING:
assert match is not None
assert match is not None
(matched, key, value) = match.groups()
if key is None or value is None:
key = None
Expand Down