← Back
Editing: completer.cpython-312.pyc
� n�h � � � d Z ddlZddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlm Z ddl Z G d � d � Zy# e$ r ddlm c mc mZ Y �w xY w)z8Provides Tab completion when prompting users for a path.� N)� TracebackType)�Callable)�Iterator)�Literal)�Optional)�Typec �j � e Zd ZdZdd�Zdededee fd�Zdd�Z d ee e d ee dee ddfd �Z y)� Completera/ Provides Tab completion when prompting users for a path. This class is meant to be used with readline to provide Tab completion for users entering paths. The complete method can be passed to readline.set_completer directly, however, this function works best as a context manager. For example: with Completer(): raw_input() In this example, Tab completion will be available during the call to raw_input above, however, readline will be restored to its previous state when exiting the body of the with statement. �returnNc � � | | | y )N� ��selfs �H/usr/lib/python3.12/site-packages/certbot/_internal/display/completer.py�__init__zCompleter.__init__"