Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Feature: allow to update CRN_LIST_URL from .env#232

Merged
1yam merged 1 commit intomainaleph-im/aleph-sdk-python:mainfrom
1yam-fake-crn-listaleph-im/aleph-sdk-python:1yam-fake-crn-listCopy head branch name to clipboard
Sep 16, 2025
Merged

Feature: allow to update CRN_LIST_URL from .env#232
1yam merged 1 commit intomainaleph-im/aleph-sdk-python:mainfrom
1yam-fake-crn-listaleph-im/aleph-sdk-python:1yam-fake-crn-listCopy head branch name to clipboard

Conversation

@1yam
Copy link
Member

@1yam 1yam commented Sep 12, 2025

On CLI side we want to be able to run a fake crn_list api to be able to create instance / interact with a crn not listed in the crn_list.

The issue is having
CRN_LIST_URL as a ClassVar don't allow to update using .env

@1yam 1yam requested a review from aliel September 12, 2025 12:21
@github-actions github-actions bot added the BLUE This PR is simple and straightforward. label Sep 12, 2025
@github-actions
Copy link

Summary:
This PR introduces a change where the CRN_LIST_URL is now explicitly typed as a str instead of being a class variable. This is a straightforward change that does not affect the functionality of the codebase but ensures type consistency. It is likely a small change aimed at improving type annotations and reducing potential future issues.

Highlight:

-    CRN_LIST_URL: ClassVar[str] = "https://crns-list.aleph.sh/crns.json"
+    CRN_LIST_URL: str = "https://crns-list.aleph.sh/crns.json"

This change is unlikely to introduce bugs and is more about improving code clarity and maintainability. Therefore, it falls under the 'BLUE' category.

@1yam 1yam merged commit 7bbeddd into main Sep 16, 2025
39 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

BLUE This PR is simple and straightforward.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.