Skip to content

Commit

Permalink
Merge pull request #2 from cclauss/patch-2
Browse files Browse the repository at this point in the history
Simplify with str
  • Loading branch information
kirrx committed Jul 7, 2016
2 parents 17ff7a8 + c466e90 commit b7bdf8b
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions datatypes.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@

from collections import namedtuple

Position = namedtuple("Position", "x y")

Position = namedtuple("Position", ["x", "y"])

Vector = namedtuple("Vector", ["xdir", "ydir"])
Vector = namedtuple("Vector", "xdir ydir")

Char = namedtuple("Char", ["char", "color"])
Char = namedtuple("Char", "char color")

Draw = namedtuple("Draw", ["x", "y", "char", "color"])
Draw = namedtuple("Draw", "x y char color"])

0 comments on commit b7bdf8b

Please sign in to comment.