Skip to content
This repository has been archived by the owner on Jun 21, 2022. It is now read-only.

Commit

Permalink
Merge pull request #385 from scikit-hep/issue-384
Browse files Browse the repository at this point in the history
Attempt to fix the 1st error reported in #384.
  • Loading branch information
jpivarski authored Oct 24, 2019
2 parents 9cbbf08 + 404ba29 commit fd17acd
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
16 changes: 16 additions & 0 deletions uproot/interp/objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ class SimpleArray(object):
def __init__(self, cls):
self.cls = cls

@property
def __name__(self):
return "SimpleArray"

def __repr__(self):
if isinstance(self.cls, type):
return "SimpleArray({0})".format(self.cls.__name__)
Expand All @@ -33,6 +37,10 @@ class STLVector(object):
def __init__(self, cls):
self.cls = cls

@property
def __name__(self):
return "STLVector"

def __repr__(self):
if isinstance(self.cls, type):
return "STLVector({0})".format(self.cls.__name__)
Expand All @@ -59,6 +67,10 @@ def __init__(self, keycls, valcls):
self.keycls = keycls
self.valcls = valcls

@property
def __name__(self):
return "STLMap"

def __repr__(self):
key = self.keycls.__name__ if isinstance(self.keycls, type) else repr(self.keycls)
val = self.valcls.__name__ if isinstance(self.valcls, type) else repr(self.valcls)
Expand Down Expand Up @@ -97,6 +109,10 @@ def __init__(self, awkward=None):
awkward = uproot.interp.interp.Interpretation.awkward
self.awkward = awkward

@property
def __name__(self):
return "STLString"

def __repr__(self):
return "STLString()"

Expand Down
2 changes: 1 addition & 1 deletion uproot/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

import re

__version__ = "3.10.8"
__version__ = "3.10.9"
version = __version__
version_info = tuple(re.split(r"[-\.]", __version__))

Expand Down

0 comments on commit fd17acd

Please sign in to comment.