Created
August 22, 2018 02:34
-
-
Save fabito/46d2e732cb0e45eca1cd048114c16ec6 to your computer and use it in GitHub Desktop.
neyboy game - SyncGame
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from syncer import sync | |
| class SyncGame: | |
| def __init__(self, game: Game): | |
| self.game = game | |
| def __getattr__(self, attr): | |
| return sync(getattr(self.game, attr)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment