RuntimeWarning: non-string key in the __dict__ of class Outputs

Open Beginner friendly
#665 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
68/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
python

Research direction

Reproduce the warning with Python 3.13 by importing csp or Outputs, then inspect the Outputs definition in csp/impl/types/common_definitions.py. Verify that the relevant change removes the RuntimeWarning without affecting imports, and rerun both import examples to confirm the warning is gone.

Written by the indexing model from the issue text.

Description

type: bug

Describe the bug
When importing csp in python 3.13, RuntimeWarning: non-string key in the __dict__ of class Outputs is raised from csp/impl/types/common_definitions.py.

To Reproduce

Install/build csp in python 3.13 and run

import csp

or

from csp.impl.types.common_definitions import Outputs

Expected behavior

No RuntimeWarnings should be raised.

Error Message

Runtime Environment

Additional context

This is coming from https://github.com/python/cpython/commit/f7c05d7ad3075a1dbeed86b6b12903032e4afba6 as a resolution for https://github.com/python/cpython/issues/55664

Dominant language
Python
Stars
441
Forks
90
Avg merge
1d 12m
Merged PRs (30d)
5

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Point72/csp

All issues in Point72/csp

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.