o
    "h4                     @   s&   d Z ddlmZ dedef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 ]$}t |trt |ttfr! dS |D ]}t |tr3t |ts3  dS q#qdS )zChecks 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
   I/var/www/html/venv/lib/python3.10/site-packages/telegram/_utils/markup.pycheck_keyboard_type!   s   r   N)__doc__collections.abcr   objectboolr   r
   r
   r
   r   <module>   s   