Skip to content

Commit 635cc87

Browse files
committed
Update __all__s and bump version
1 parent 5eea2c2 commit 635cc87

4 files changed

Lines changed: 17 additions & 2 deletions

File tree

mahjong/__init__.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,10 @@
2020
https://github.com/Kenny2github/mahjong/wiki
2121
"""
2222

23-
__version__ = "2.0.0rc1"
23+
__version__ = "2.0.0rc2"
24+
2425
__all__ = [
26+
'STOCK_TABLES',
2527
'TurnEnding',
2628
'HandEnding',
2729
'Question',
@@ -49,12 +51,17 @@
4951
'BonusTile',
5052

5153
'WuFlag',
54+
'THIRTEEN_ORPHANS',
55+
'FLAG_FAAN',
5256
'Meld',
5357
'Pong',
5458
'Kong',
5559
'Chow',
5660
'Eyes',
5761
'Wu',
62+
'faan',
63+
64+
'Player',
5865
]
5966

6067
from .players import *

mahjong/game.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
# a lot of circular imports if they are in different files.
1515

1616
__all__ = [
17+
'STOCK_TABLES',
1718
'TurnEnding',
1819
'HandEnding',
1920
'Question',

mahjong/melds.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,21 @@
11
"""Contains classes representing melds that check their validity."""
22
from __future__ import annotations
3-
from enum import Flag, auto
3+
from enum import Flag
44
from itertools import combinations
55
from typing import Optional, Sequence, Union, Iterable, List, Iterator, TypeVar, Type, Tuple
66
from .tiles import Honors, Tile, Simples, Bonuses, Misc, Wind
77

88
__all__ = [
99
'WuFlag',
10+
'THIRTEEN_ORPHANS',
11+
'FLAG_FAAN',
1012
'Meld',
1113
'Pong',
1214
'Kong',
1315
'Chow',
1416
'Eyes',
1517
'Wu',
18+
'faan',
1619
]
1720

1821
class WuFlag(Flag):

mahjong/players.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
from .tiles import Bonuses, Tile, BonusTile, Wind
33
from .melds import Meld, WuFlag, faan
44

5+
__all__ = [
6+
'Player',
7+
]
8+
59
class Player:
610
"""Represents one Mahjong player."""
711

0 commit comments

Comments
 (0)