uses: actions/checkout@v2 (#1779)

* uses: actions/checkout@v2

* fixup! Format Python code with psf/black push
This commit is contained in:
Christian Clauss 2020-02-21 11:02:35 +01:00 committed by GitHub
parent cb4795616c
commit 59bf115aa1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 5 deletions

View File

@ -9,7 +9,7 @@ jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v2
- uses: actions/setup-python@v1 - uses: actions/setup-python@v1
- run: pip install black - run: pip install black
- run: black --check . - run: black --check .

View File

@ -5,6 +5,8 @@
""" """
"""Calculate Modular Exponential.""" """Calculate Modular Exponential."""
def modular_exponential(base: int, power: int, mod: int): def modular_exponential(base: int, power: int, mod: int):
""" """
>>> modular_exponential(5, 0, 10) >>> modular_exponential(5, 0, 10)

View File

@ -1,6 +1,7 @@
import random import random
from typing import List from typing import List
class Dice: class Dice:
NUM_SIDES = 6 NUM_SIDES = 6