Convert old syntax for Yields annotations to new syntax
Marco Ricci

Marco Ricci commited on 2024-09-29 23:21:09
Zeige 2 geänderte Dateien mit 2 Einfügungen und 4 Löschungen.


[Griffe now handles non-multiple yields and returns similarly.] [YIELDS]
There is thus no need for an empty argument name and type annotation.

[YIELDS]: https://github.com/mkdocstrings/griffe/issues/263
... ...
@@ -505,9 +505,8 @@ def _get_suitable_ssh_keys(
505 505
             previous case.
506 506
 
507 507
     Yields:
508
-        :
509
-            Every SSH key from the SSH agent that is suitable for
510
-            passphrase derivation.
508
+        Every SSH key from the SSH agent that is suitable for passphrase
509
+        derivation.
511 510
 
512 511
     Raises:
513 512
         KeyError:
... ...
@@ -561,7 +561,6 @@ def decrypt_bucket_file(
561 561
             interpreted relatively to this directory.
562 562
 
563 563
     Yields:
564
-        :
565 564
         A decrypted bucket item.
566 565
 
567 566
     Raises:
568 567