U
    ‰¾úg4  ã                   @   s$   d Z ddlmZ eedœdd„ZdS )a¹  This module contains a helper function for Telegram's ReplyMarkups

.. versionchanged:: 20.0
   Previously, the contents of this module were available through the (no longer existing)
   class ``telegram.ReplyMarkup``.

Warning:
    Contents of this module are intended to be used internally by the library and *not* by the
    user. Changes to this module are not considered breaking changes and may not be documented in
    the changelog.
é    )ÚSequence)ÚkeyboardÚreturnc                 C   sn   t | tƒrt | ttfƒrdS | D ]H}t |tƒr<t |ttfƒrB dS |D ] }t |tƒrFt |tƒsF  dS qFq dS )z¡Checks if the keyboard provided is of the correct type - A sequence of sequences.
    Implicitly tested in the init-tests of `{Inline, Reply}KeyboardMarkup`
    FT)Ú
isinstancer   ÚstrÚbytes)r   ÚrowÚinner© r
   ú:/tmp/pip-unpacked-wheel-swnnwir2/telegram/_utils/markup.pyÚcheck_keyboard_type!   s    r   N)Ú__doc__Úcollections.abcr   ÚobjectÚboolr   r
   r
   r
   r   Ú<module>   s   