Skip to content

Commit

Permalink
@attr.s(slots=True) and Generic[T] don't work together in Python 3.6
Browse files Browse the repository at this point in the history
  • Loading branch information
alanbriolat committed Jun 17, 2019
1 parent cc5c34b commit c44c038
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/csbot/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ def is_simple(self):
return self in {self.SIMPLE, self.SIMPLE_LIST, self.SIMPLE_MAP}


@attr.s(slots=True, frozen=True)
@attr.s(frozen=True)
class _OptionMetadata(Generic[_B]):
type: Type[_B] = attr.ib()
kind: _OptionKind = attr.ib(validator=attr.validators.in_(_OptionKind))
Expand Down

0 comments on commit c44c038

Please sign in to comment.