Skip to content

Commit

Permalink
add Result, initial typing
Browse files Browse the repository at this point in the history
  • Loading branch information
tony committed Oct 8, 2016
1 parent 4d989df commit 8c37827
Showing 1 changed file with 15 additions and 8 deletions.
23 changes: 15 additions & 8 deletions patches/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,26 +10,33 @@
"""

from typing import List


class Result(object):

pass

class Source(object):

def get_results(self):
def get_results(self) -> List[Result]:
pass



class Entry(object):

raw_data = None
raw_data = None # type: str


class Patch(object):
class Patch(Entry):

def __str__(self):
return self._raw_data
def __str__(self) -> str:
return self.raw_data


class Communique(object):
class Communique(Entry):

def __str__(self):
def __str__(self) -> str:

return self._raw_data
return self.raw_data

0 comments on commit 8c37827

Please sign in to comment.