Skip to content

Commit

Permalink
Update __all__s and bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
Kenny2github committed Feb 8, 2021
1 parent 5eea2c2 commit 635cc87
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 2 deletions.
9 changes: 8 additions & 1 deletion mahjong/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,10 @@
https://github.com/Kenny2github/mahjong/wiki
"""

__version__ = "2.0.0rc1"
__version__ = "2.0.0rc2"

__all__ = [
'STOCK_TABLES',
'TurnEnding',
'HandEnding',
'Question',
Expand Down Expand Up @@ -49,12 +51,17 @@
'BonusTile',

'WuFlag',
'THIRTEEN_ORPHANS',
'FLAG_FAAN',
'Meld',
'Pong',
'Kong',
'Chow',
'Eyes',
'Wu',
'faan',

'Player',
]

from .players import *
Expand Down
1 change: 1 addition & 0 deletions mahjong/game.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
# a lot of circular imports if they are in different files.

__all__ = [
'STOCK_TABLES',
'TurnEnding',
'HandEnding',
'Question',
Expand Down
5 changes: 4 additions & 1 deletion mahjong/melds.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,21 @@
"""Contains classes representing melds that check their validity."""
from __future__ import annotations
from enum import Flag, auto
from enum import Flag
from itertools import combinations
from typing import Optional, Sequence, Union, Iterable, List, Iterator, TypeVar, Type, Tuple
from .tiles import Honors, Tile, Simples, Bonuses, Misc, Wind

__all__ = [
'WuFlag',
'THIRTEEN_ORPHANS',
'FLAG_FAAN',
'Meld',
'Pong',
'Kong',
'Chow',
'Eyes',
'Wu',
'faan',
]

class WuFlag(Flag):
Expand Down
4 changes: 4 additions & 0 deletions mahjong/players.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
from .tiles import Bonuses, Tile, BonusTile, Wind
from .melds import Meld, WuFlag, faan

__all__ = [
'Player',
]

class Player:
"""Represents one Mahjong player."""

Expand Down

0 comments on commit 635cc87

Please sign in to comment.