summaryrefslogtreecommitdiff
path: root/pylint/test/functional/disable_msg_github_issue_1389.py
blob: 5c7ad1e5d45bd80b0b877888365dc4598a143a95 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# pylint: disable=missing-docstring,too-few-public-methods

from typing import Dict, NamedTuple, NewType, Set

UserId = NewType('UserId', str)  # pylint: disable=invalid-name
PlaceId = NewType('PlaceId', str)  # pylint: disable=invalid-name


class Bar(NamedTuple):
    place: PlaceId
    name: str


class Foo(NamedTuple):
    user: Dict[UserId, Set[Bar]]