Skip to content

Instantly share code, notes, and snippets.

@mawillcockson
Created February 9, 2021 00:44
Show Gist options
  • Select an option

  • Save mawillcockson/21ed136f5947e3be522934b4a8621dcb to your computer and use it in GitHub Desktop.

Select an option

Save mawillcockson/21ed136f5947e3be522934b4a8621dcb to your computer and use it in GitHub Desktop.
[Python] bug in black
"""
black --version
black, version 20.8b1
comments indicate how black reformats the above line
all of these are treated as valid in Python 3.6+
"""
from typing import List, Tuple
name: List[Tuple[float]] = []
# name: List[Tuple[float]] = []
name: List[Tuple[float,]] = []
# name: List[
# Tuple[
# float,
# ]
# ] = []
name: List[Tuple[float, int]] = []
# name: List[Tuple[float, int]] = []
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment