Skip to content

Commit

Permalink
MAINT: mark classes we need hashable as immutable.
Browse files Browse the repository at this point in the history
This is required by the new attrs 17.1.0
(python-attrs/attrs#191).
  • Loading branch information
cournape committed May 17, 2017
1 parent d3bc645 commit 90b4198
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion okonomiyaki/file_formats/_egg_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ def text_or_none_attr(**kw):


@six.python_2_unicode_compatible
@attributes
@attributes(frozen=True)
class Requirement(object):
"""
Model for entries in the package metadata inside EGG-INFO/spec/depend
Expand Down
2 changes: 1 addition & 1 deletion okonomiyaki/platforms/_arch.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class ArchitectureKind(enum.Enum):
}


@attributes
@attributes(frozen=True)
class Arch(object):
""" A normalized architecture representation.
"""
Expand Down
2 changes: 1 addition & 1 deletion okonomiyaki/platforms/epd_platform.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def wrapper(inst, attr, value):


@six.python_2_unicode_compatible
@attributes
@attributes(frozen=True)
class EPDPlatform(object):
"""
An sane Canopy/EPD platform representation.
Expand Down
2 changes: 1 addition & 1 deletion okonomiyaki/platforms/platform.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class NameKind(enum.Enum):


@six.python_2_unicode_compatible
@attributes(repr=False)
@attributes(repr=False, frozen=True)
class Platform(object):
"""
An generic platform representation.
Expand Down

0 comments on commit 90b4198

Please sign in to comment.