mirror of
https://github.com/TheAlgorithms/Python.git
synced 2026-09-29 17:08:49 +08:00
from __future__ import annotations (#2464)
* from __future__ import annotations
* fixup! from __future__ import annotations
* fixup! from __future__ import annotations
* fixup! Format Python code with psf/black push
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
This commit is contained in:
co-authored by
github-actions
parent
6e6a49d19f
commit
9200a2e543
@@ -1,7 +1,7 @@
|
||||
from typing import List
|
||||
from __future__ import annotations
|
||||
|
||||
|
||||
def collatz_sequence(n: int) -> List[int]:
|
||||
def collatz_sequence(n: int) -> list[int]:
|
||||
"""
|
||||
Collatz conjecture: start with any positive integer n. The next term is
|
||||
obtained as follows:
|
||||
|
||||
Reference in New Issue
Block a user