Updated subpackages to include __all__ and modified some docstrings
This commit is contained in:
		
							parent
							
								
									09923a52b2
								
							
						
					
					
						commit
						8d977cea01
					
				| 
						 | 
				
			
			@ -1 +1,3 @@
 | 
			
		|||
from .bulk_data import BulkData
 | 
			
		||||
from .bulk_data import BulkData
 | 
			
		||||
 | 
			
		||||
__all__ = ['BulkData']
 | 
			
		||||
| 
						 | 
				
			
			@ -7,3 +7,15 @@ from .named import Named
 | 
			
		|||
from .randomcard import Random
 | 
			
		||||
from .search import Search
 | 
			
		||||
from .arena_id import ArenaId
 | 
			
		||||
 | 
			
		||||
__all__ = [
 | 
			
		||||
    'Autocomplete',
 | 
			
		||||
    'Collector',
 | 
			
		||||
    'Id',
 | 
			
		||||
    'Mtgo',
 | 
			
		||||
    'Multiverse',
 | 
			
		||||
    'Named',
 | 
			
		||||
    'Random',
 | 
			
		||||
    'Search',
 | 
			
		||||
    'ArenaId'
 | 
			
		||||
]
 | 
			
		||||
| 
						 | 
				
			
			@ -19,7 +19,7 @@ class Collector(CardsObject):
 | 
			
		|||
        Exception: If the object returned is an error.
 | 
			
		||||
 | 
			
		||||
    Examples:
 | 
			
		||||
        >>> card = scrython.cards.Collector(code='exo', collector_number='96')
 | 
			
		||||
        >>> card = scrython.cards.Collector(code="exo", collector_number="96")
 | 
			
		||||
        >>> card.id()
 | 
			
		||||
    """
 | 
			
		||||
    def __init__(self, **kwargs):
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -11,3 +11,19 @@ from .toughnesses import Toughnesses
 | 
			
		|||
from .watermarks import Watermarks
 | 
			
		||||
from .word_bank import WordBank
 | 
			
		||||
from .artist_names import ArtistNames
 | 
			
		||||
 | 
			
		||||
__all__ = [
 | 
			
		||||
    'ArtifactTypes',
 | 
			
		||||
    'CardNames',
 | 
			
		||||
    'CreatureTypes',
 | 
			
		||||
    'EnchantmentTypes',
 | 
			
		||||
    'LandTypes',
 | 
			
		||||
    'Loyalties',
 | 
			
		||||
    'PlaneswalkerTypes',
 | 
			
		||||
    'Powers',
 | 
			
		||||
    'SpellTypes',
 | 
			
		||||
    'Toughnesses',
 | 
			
		||||
    'Watermarks',
 | 
			
		||||
    'WordBank',
 | 
			
		||||
    'ArtistNames'
 | 
			
		||||
]
 | 
			
		||||
| 
						 | 
				
			
			@ -2,3 +2,10 @@ from .mtgo import Mtgo
 | 
			
		|||
from .multiverse_id import Multiverse
 | 
			
		||||
from .scryfall_id import Id
 | 
			
		||||
from .set_code import Code
 | 
			
		||||
 | 
			
		||||
__all__ = [
 | 
			
		||||
    'Mtgo',
 | 
			
		||||
    'Multiverse',
 | 
			
		||||
    'Id',
 | 
			
		||||
    'Code'
 | 
			
		||||
]
 | 
			
		||||
| 
						 | 
				
			
			@ -23,7 +23,7 @@ class Arena(RulingsObject):
 | 
			
		|||
        N/A
 | 
			
		||||
 | 
			
		||||
    Examples:
 | 
			
		||||
        >>> rule = scrython.rulings.Arena(id='66975')
 | 
			
		||||
        >>> rule = scrython.rulings.Arena(id="66975")
 | 
			
		||||
        >>> rule.data_length()
 | 
			
		||||
    """
 | 
			
		||||
    def __init__(self, **kwargs):
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -23,7 +23,7 @@ class Mtgo(RulingsObject):
 | 
			
		|||
        N/A
 | 
			
		||||
 | 
			
		||||
    Examples:
 | 
			
		||||
        >>> rule = scrython.rulings.Mtgo(id='9611')
 | 
			
		||||
        >>> rule = scrython.rulings.Mtgo(id="9611")
 | 
			
		||||
        >>> rule.data_length()
 | 
			
		||||
    """
 | 
			
		||||
    def __init__(self, **kwargs):
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -23,7 +23,7 @@ class Multiverse(RulingsObject):
 | 
			
		|||
        N/A
 | 
			
		||||
 | 
			
		||||
    Examples:
 | 
			
		||||
        >>> rule = scrython.rulings.Id(id='4301')
 | 
			
		||||
        >>> rule = scrython.rulings.Id(id="4301")
 | 
			
		||||
        >>> rule.data_length()
 | 
			
		||||
    """
 | 
			
		||||
    def __init__(self, **kwargs):
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -23,7 +23,7 @@ class Id(RulingsObject):
 | 
			
		|||
        N/A
 | 
			
		||||
 | 
			
		||||
    Examples:
 | 
			
		||||
        >>> rule = scrython.rulings.Id(id='5976c352-ac49-4e0d-a4c0-ec9b6b78db9c')
 | 
			
		||||
        >>> rule = scrython.rulings.Id(id="5976c352-ac49-4e0d-a4c0-ec9b6b78db9c")
 | 
			
		||||
        >>> rule.data_length()
 | 
			
		||||
    """
 | 
			
		||||
    def __init__(self, **kwargs):
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -24,7 +24,7 @@ class Code(RulingsObject):
 | 
			
		|||
        N/A
 | 
			
		||||
 | 
			
		||||
    Examples:
 | 
			
		||||
        >>> rule = scrython.rulings.Code(code='ddg', collector_number='42')
 | 
			
		||||
        >>> rule = scrython.rulings.Code(code="ddg", collector_number="42")
 | 
			
		||||
        >>> rule.data_length()
 | 
			
		||||
    """
 | 
			
		||||
    def __init__(self, code, collector_number):
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,2 +1,4 @@
 | 
			
		|||
from .code import Code
 | 
			
		||||
from .sets import Sets
 | 
			
		||||
 | 
			
		||||
__all__ = [ 'Code', 'Sets' ]
 | 
			
		||||
| 
						 | 
				
			
			@ -22,7 +22,7 @@ class Code(FoundationObject):
 | 
			
		|||
        N/A
 | 
			
		||||
 | 
			
		||||
    Examples:
 | 
			
		||||
        >>> set = scrython.sets.Code(code='por')
 | 
			
		||||
        >>> set = scrython.sets.Code(code="por")
 | 
			
		||||
        >>> set.name()
 | 
			
		||||
    """
 | 
			
		||||
    def __init__(self, code):
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -21,7 +21,7 @@ class Sets(FoundationObject):
 | 
			
		|||
 | 
			
		||||
    Examples:
 | 
			
		||||
        >>> set = scrython.sets.Sets()
 | 
			
		||||
        >>> set.data(3, 'name')
 | 
			
		||||
        >>> set.data(3, "name")
 | 
			
		||||
    """
 | 
			
		||||
    def __init__(self):
 | 
			
		||||
        self._url = 'sets?'
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,2 +1,4 @@
 | 
			
		|||
from .parse_mana import ParseMana
 | 
			
		||||
from .symbology import Symbology
 | 
			
		||||
 | 
			
		||||
__all__ = [ 'ParseMana', 'Symbology' ]
 | 
			
		||||
		Loading…
	
		Reference in New Issue