@@ -345,11 +345,30 @@ class Subdivisions(tuple):
345345 This attribute is returned by ``city``, ``enterprise``, and ``insights``.
346346 """
347347
348+ __slots__ = ("_locales" ,)
349+
348350 def __new__ (
349351 cls : type [Self ],
350352 locales : Sequence [str ] | None ,
351353 * subdivisions : dict ,
352354 ) -> Self :
355+ """Create a new Subdivisions instance.
356+
357+ This method constructs the tuple with Subdivision objects created
358+ from the provided dictionaries.
359+
360+ Arguments:
361+ cls: The class to instantiate (Subdivisions).
362+ locales: A sequence of locale strings (e.g., ['en', 'fr'])
363+ or None, passed to each Subdivision object.
364+ *subdivisions: A variable number of dictionaries, where each
365+ dictionary contains the data for a single :py:class:`Subdivision`
366+ object (e.g., name, iso_code).
367+
368+ Returns:
369+ A new instance of Subdivisions containing :py:class:`Subdivision` objects.
370+
371+ """
353372 subobjs = tuple (Subdivision (locales , ** x ) for x in subdivisions )
354373 return super ().__new__ (cls , subobjs )
355374
@@ -358,6 +377,7 @@ def __init__(
358377 locales : Sequence [str ] | None ,
359378 * _ : dict ,
360379 ) -> None :
380+ """Initialize the Subdivisions instance."""
361381 self ._locales = locales
362382 super ().__init__ ()
363383
0 commit comments