Development of an internal social media platform with personalised dashboards for students
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

disable_msg_github_issue_1389.py 357B

123456789101112131415
  1. # pylint: disable=missing-docstring,too-few-public-methods
  2. from typing import Dict, NamedTuple, NewType, Set
  3. UserId = NewType('UserId', str) # pylint: disable=invalid-name
  4. PlaceId = NewType('PlaceId', str) # pylint: disable=invalid-name
  5. class Bar(NamedTuple):
  6. place: PlaceId
  7. name: str
  8. class Foo(NamedTuple):
  9. user: Dict[UserId, Set[Bar]]