Start to flesh out function docstrings, add some more type annotations.

This commit is contained in:
kris
2019-03-21 22:41:05 +00:00
parent da2e2476e7
commit ce078f493f
2 changed files with 21 additions and 3 deletions

View File

@@ -1,15 +1,20 @@
"""Parses the cc65 .dbg output to extract symbol addresses."""
from typing import Dict
from typing import Dict, TextIO
class SymbolTable:
"""Parse cc65 debug file to extract symbol table."""
def __init__(self, debugfile: str = None):
self.debugfile = debugfile
self.debugfile = debugfile # type: str
def parse(self, iostream=None) -> Dict:
def parse(self, iostream: TextIO = None) -> Dict:
"""
:param iostream:
:return:
"""
syms = {}
if not iostream: