Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python 3.8 TypeError #6

Open
4l1fe opened this issue Mar 16, 2023 · 2 comments
Open

Python 3.8 TypeError #6

4l1fe opened this issue Mar 16, 2023 · 2 comments

Comments

@4l1fe
Copy link

4l1fe commented Mar 16, 2023

Hey, nice to hear you've bumped the version.

I've catched an error while importing RedFrames with python 3.8

Python 3.8.10 (default, Nov 14 2022, 12:59:47)
Type 'copyright', 'credits' or 'license' for more information
IPython 7.34.0 -- An enhanced Interactive Python. Type '?' for help.

In [1]: import redframes
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-1-8e05403344db> in <cell line: 1>()
----> 1 import redframes

~/.local/lib/python3.8/site-packages/redframes/__init__.py in <module>
      1 from . import stat
----> 2 from .core import DataFrame
      3 from .io import load, save, unwrap, wrap
      4 from .version import __version__

~/.local/lib/python3.8/site-packages/redframes/core.py in <module>
      4 import warnings
      5
----> 6 from .checks import _check_type
      7 from .types import (
      8     Any,

~/.local/lib/python3.8/site-packages/redframes/checks.py in <module>
      1 from __future__ import annotations
      2
----> 3 from .types import (
      4     Any,
      5     Columns,

~/.local/lib/python3.8/site-packages/redframes/types.py in <module>
      9
     10 Value = Any
---> 11 Values = list[Value]
     12 OldValue = Value
     13 NewValue = Value

TypeError: 'type' object is not subscriptable
!pip list
redframes                     1.4.1
pandas                        1.5.3
@maxhumber
Copy link
Owner

💩. If you could send a PR for the fix, would be happy to merge!

@4l1fe
Copy link
Author

4l1fe commented Mar 17, 2023

hankey. If you could send a PR for the fix, would be happy to merge!

@maxhumber Done.

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

No branches or pull requests

2 participants