cdgriffith / cdgriffith/Box

cannot froze a subclass

Open
#223 4 comments 0 reactions 0 assignees View on GitHub
question
Dominant language
Python
Stars
2.8k
Forks
135
PR merge metrics
No merged PRs in 30d

Description

To continue on my previous issue, I would like to froze a sublcass but I can't manage to make it work. As you manage to make it work in `BoxList` what am I missing ?

```python
class toto(Box):

def __init__(self, valeur):

super(Box, self).__init__({"valeur": {"valeur": valeur}}, frozen_box=True)

truc = toto("truc")
```

```python
truc.valeur = "toto"
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.