Added more docstring

master
Arne Wischer 6 years ago
parent 22987bcef8
commit f79f5589f6
  1. 3
      .vscode/settings.json
  2. 14
      days/comp.py
  3. 2
      days/day2.py

@ -1,5 +1,6 @@
{
"python.linting.pylintEnabled": false,
"python.linting.pycodestyleEnabled": true,
"python.linting.enabled": true
"python.linting.enabled": true,
"autoDocstring.docstringFormat": "google"
}

@ -1,7 +1,19 @@
from typing import *
from typing import List, Tuple
class OpcodeComputer():
"""OpcodeCOmputer for Advent of Code 2019
OpcodeComputer as specified by day 2 and 5 of the Advent of \
Code 2019 challenge.
.. _Advent of Code 2019 day 2
https://adventofcode.com/2019/day/2
.. _Advent of Code 2019 day 5
https://adventofcode.com/2019/day/5
"""
def parse_param(self, pc: int, mem: List[int]) \
-> Tuple[int, int, int, int]:

@ -1,6 +1,6 @@
import unittest
import os
from typing import *
from typing import List
from .comp import OpcodeComputer

Loading…
Cancel
Save