This website requires JavaScript.
Explore
Help
Register
Sign In
Rooba
/
rq
mirror of
https://github.com/rq/rq.git
Watch
1
Star
1
Fork
You've already forked rq
0
Code
Issues
Packages
Projects
Releases
Wiki
Activity
bb7f340537
rq
/
examples
/
fib.py
6 lines
108 B
Python
Raw
Normal View
History
Unescape
Escape
Add example and README updates.
2011-11-14 14:15:05 +00:00
def
slow_fib
(
n
)
:
if
n
<
=
1
:
return
1
else
:
Update linting configuration (#1915) * Update linting configuration This removes flake8 in favor of ruff, which also provides isort support, and updates all files to be black, isort, and ruff compliant. This also adds black and ruff checks to the tox and Github linting workflow. * Tweak the code coverage config and calls
2023-05-17 16:19:14 +00:00
return
slow_fib
(
n
-
1
)
+
slow_fib
(
n
-
2
)