Closed christophwelling closed 3 years ago
I think it is not clear yet how to call a new detector instance (at least not to me). Can you provide an explicit example? And ideally also add it to the docstring of the detector class as this is the point where people will look first?
so e.g.
det = Detector(source='json', create_new=True)
will do the job?
Yes. I also noticed that by default the init is not listed in the rendered documentation. I made a commit to change that for all classes.
I think this is good to go but can you add the new parameter to the docstring of the detector init function. I think otherwise it will be very difficult to see that this parameter exists.
Just wanted to comment that I started using this, and it was very helpful. Also looks good to merge after you're happy with the docs. Thanks!
Then can someone approve this, so we stick to the process?
I added it. Looks like sphinx does not know how to handle metaclasses, that's a bit unfortunate.
Addresses #266 No you can pass create_new=True to a Singleton's call method to explicitly create a new class instance