Change List to Set

This commit is contained in:
Gabben 2022-03-23 15:02:58 +00:00 committed by GitHub
parent e2fb9380d6
commit 410350a7ea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -129,7 +129,7 @@ Can be used only with string attributes.
.. code-block:: python
F.text.lower() == 'test' # lambda message: message.text.lower() == 'test'
F.text.upper().in_(['FOO', 'BAR']) # lambda message: message.text.upper() in ['FOO', 'BAR']
F.text.upper().in_({'FOO', 'BAR'}) # lambda message: message.text.upper() in {'FOO', 'BAR'}
F.text.len() == 5 # lambda message: len(message.text) == 5