Skip to content

Fix broken storage examples and remaining Sphinx warnings - #1243

Draft
Omarinho12345 wants to merge 1 commit into
aio-libs:masterfrom
Omarinho12345:docs/fix-storage-examples
Draft

Omarinho12345 wants to merge 1 commit into
aio-libs:masterfrom
Omarinho12345:docs/fix-storage-examples

Conversation

@Omarinho12345

Copy link
Copy Markdown

The storage examples in the docs no longer work:

  • Redis: aioredis was replaced by redis in 2.12.0, and redis.asyncio.from_url() is a regular function, so await aioredis.from_url(...) raises ModuleNotFoundError/TypeError.
  • Memcached setup: aiohttp_session.memcached_storage.Client(mc) does not exist (the module provides MemcachedStorage), so the snippet raises AttributeError.
  • Memcached class example: await aiomcache.Client(...) awaits a synchronous constructor and uses port 6379, which is Redis' default.

Also fixes documentation statements: storages use the AIOHTTP_SESSION cookie by default rather than AIOHTTP_COOKIE_SESSION, GitHub Actions instead of Travis, the missing redis glossary term, a duplicate module directive, and a few typos.

Verification:

  • sphinx-build -b html docs: 5 warnings on master, 0 after the change.
  • Corrected snippets run with redis-py 8.1.0 and aiomcache 0.8.2: redis.asyncio.from_url(...) + RedisStorage and aiomcache.Client("localhost", 11211) + MemcachedStorage construct with cookie_name == "AIOHTTP_SESSION"; the old calls fail as described.

Docs only, no code changes.

The Redis setup examples still imported aioredis, which aiohttp-session
stopped using in 2.12.0, and awaited redis.asyncio.from_url although it is
a regular function. The Memcached setup example instantiated the client
class instead of MemcachedStorage, and the class example awaited the
synchronous aiomcache.Client constructor with Redis' default port.

Also state that storages default to the AIOHTTP_SESSION cookie (the docs
claimed AIOHTTP_COOKIE_SESSION, contradicting the example below it),
replace the Travis CI reference with GitHub Actions, add the missing redis
glossary term, drop a duplicate module directive and fix a few typos.

The Sphinx build now completes without warnings (5 before).
@agentscanapp

agentscanapp Bot commented Oct 29, 2026

Copy link
Copy Markdown

Automation signals

Activity patterns show signs of automation.

View full analysis →

Report this account →

Evidence
  • Fork scatter pattern: Forks spread across 17 different repositories over 30 days
  • Rapid PRs to repository: 5 PRs opened to Significant-Gravitas/AutoGPT within 64s intervals
  • Rapid fork→PR pattern: 28 fork branches followed by upstream PRs within 80s, out of 36 branches created in total

Last 5 PRs:

This is an automated analysis by AgentScan

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant