Skip to content

Explicitly import requests instead of using asterisk import#63

Merged
s3inlc merged 1 commit intohashtopolis:masterfrom
injust:patch-2
Mar 2, 2026
Merged

Explicitly import requests instead of using asterisk import#63
s3inlc merged 1 commit intohashtopolis:masterfrom
injust:patch-2

Conversation

@injust
Copy link
Contributor

@injust injust commented Oct 5, 2025

When building a custom version of the agent, I ran into a NameError because requests wasn't imported.

@s3inlc
Copy link
Member

s3inlc commented Oct 7, 2025

With which python version does this happen?

@injust
Copy link
Contributor Author

injust commented Oct 7, 2025

I ran into this when building a custom version of the agent. It was probably something I did and not the Python version, as the released hashtopolis.zip works.

But generally, it's bad practice to rely on asterisk imports. It took me some time to realize that the requests import was coming from 2 levels of asterisk imports.

@injust injust changed the title Add missing requests import Explicitly import requests instead of using asterisk import Oct 7, 2025
@injust
Copy link
Contributor Author

injust commented Feb 22, 2026

Hi @s3inlc, is there any interest in merging this?

@s3inlc s3inlc merged commit fd0607a into hashtopolis:master Mar 2, 2026
@injust injust deleted the patch-2 branch March 2, 2026 18:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants