Skip to content

Latest commit

 

History

History
44 lines (36 loc) · 705 Bytes

Notes.md

File metadata and controls

44 lines (36 loc) · 705 Bytes

Type annotations

PEP 484

def f(x):
    # type: (int) -> str
    return "x"

a = b  # type: List[int]  

Works but all types should be imported

Sphinx style

def f(x):
    """
    :param int x:
    """
    return None

Works but only single word types

def f(x):
    """
    :type x: typing.List[int]
    """
    return None

Works and foo.bar.baz modules are imported.

Git workflow

We want git push command to upload tags, so that CI system can trigger release build

git config --global push.followTags true

Subtrees

Pull or push docker image changes upstream

git subtree push -P docker [email protected]:technic/e2xvfb.git master