mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-05 09:21:13 +08:00
Pyupgrade to Python 3.9 (#4718)
* Pyupgrade to Python 3.9 * updating DIRECTORY.md Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
This commit is contained in:
@ -1,12 +1,11 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
from typing import Optional
|
||||
from __future__ import annotations
|
||||
|
||||
|
||||
def decrypt_caesar_with_chi_squared(
|
||||
ciphertext: str,
|
||||
cipher_alphabet: Optional[list[str]] = None,
|
||||
frequencies_dict: Optional[dict[str, float]] = None,
|
||||
cipher_alphabet: list[str] | None = None,
|
||||
frequencies_dict: dict[str, float] | None = None,
|
||||
case_sensetive: bool = False,
|
||||
) -> tuple[int, float, str]:
|
||||
"""
|
||||
|
Reference in New Issue
Block a user