Ryan Morshead
Ryan Morshead
I think [browser compatibility](https://developer.mozilla.org/en-US/docs/Web/API/ClipboardItem#browser_compatibility) around the `clipboard` API has only recently improved. I suspect that's the main reason this hasn't been implemented before. Here's [an example](https://developer.mozilla.org/en-US/docs/Web/API/ClipboardItem#examples) showing how to do...
If the solution in the linked issue is not sufficient, then it seems you're asking a slightly different question. Specifically, whether there's some way to mark configurable traits in such...
It appears that the suggested workaround either does not work, or is inconsistent.
@cmcarey is this related to https://github.com/keleshev/schema/pull/169?
@cmcarey the reason this is difficult is because there is no option within `Schema` to `allow_extra_keys`. If this option existed you wouldn't even need `compose` to do what you want:...
We can leverage https://github.com/keleshev/schema/pull/182 into this: ```python from schema import Model class User(Model): name = str bio = str s = Schema(User) s.validate({"name": "Ryan", "bio": "my-info"}) ``` Which would behave...
@skorokithakis the docstrings under the attributes is supported by sphinx to my knowlwedge. Type annotations would be nice (there might be a better api assuming that). It depends on whether...
We could definitely leverage type information while processing the Model. For example this model: ```python class User(Model): name : str = lambda x: len(x) < 10 """The username.""" ``` could...
@skorokithakis good point. I took a moment yesterday to try and implement the API I proposed and it wasn't as straightforward as I wanted it to be. I think limiting...
Also I learned that sphinx supports "doc comments" which for short descriptions make it even cleaner: ```python class User(Model): name = str #: the username ```