|
1 | 1 | # AUTO GENERATED FILE - DO NOT EDIT
|
2 | 2 |
|
| 3 | +import typing # noqa: F401 |
| 4 | +from typing_extensions import TypedDict, NotRequired, Literal # noqa: F401 |
3 | 5 | from dash.development.base_component import Component, _explicitize_args
|
4 | 6 |
|
| 7 | +ComponentType = typing.Union[ |
| 8 | + str, |
| 9 | + int, |
| 10 | + float, |
| 11 | + Component, |
| 12 | + None, |
| 13 | + typing.Sequence[typing.Union[str, int, float, Component, None]], |
| 14 | +] |
| 15 | + |
| 16 | +NumberType = typing.Union[ |
| 17 | + typing.SupportsFloat, typing.SupportsInt, typing.SupportsComplex |
| 18 | +] |
| 19 | + |
5 | 20 |
|
6 | 21 | class BibCard(Component):
|
7 | 22 | """A BibCard component.
|
@@ -52,18 +67,31 @@ class BibCard(Component):
|
52 | 67 | _base_nodes = ['children']
|
53 | 68 | _namespace = 'dash_mp_components'
|
54 | 69 | _type = 'BibCard'
|
55 |
| - @_explicitize_args |
56 |
| - def __init__(self, id=Component.UNDEFINED, className=Component.UNDEFINED, title=Component.UNDEFINED, author=Component.UNDEFINED, year=Component.UNDEFINED, journal=Component.UNDEFINED, doi=Component.UNDEFINED, shortName=Component.UNDEFINED, preventOpenAccessFetch=Component.UNDEFINED, openAccessUrl=Component.UNDEFINED, **kwargs): |
| 70 | + |
| 71 | + |
| 72 | + def __init__( |
| 73 | + self, |
| 74 | + id: typing.Optional[typing.Union[str, dict]] = None, |
| 75 | + className: typing.Optional[str] = None, |
| 76 | + title: typing.Optional[str] = None, |
| 77 | + author: typing.Optional[str] = None, |
| 78 | + year: typing.Optional[typing.Union[str, NumberType]] = None, |
| 79 | + journal: typing.Optional[str] = None, |
| 80 | + doi: typing.Optional[str] = None, |
| 81 | + shortName: typing.Optional[str] = None, |
| 82 | + preventOpenAccessFetch: typing.Optional[bool] = None, |
| 83 | + openAccessUrl: typing.Optional[str] = None, |
| 84 | + **kwargs |
| 85 | + ): |
57 | 86 | self._prop_names = ['id', 'author', 'className', 'doi', 'journal', 'openAccessUrl', 'preventOpenAccessFetch', 'shortName', 'title', 'year']
|
58 | 87 | self._valid_wildcard_attributes = []
|
59 | 88 | self.available_properties = ['id', 'author', 'className', 'doi', 'journal', 'openAccessUrl', 'preventOpenAccessFetch', 'shortName', 'title', 'year']
|
60 | 89 | self.available_wildcard_properties = []
|
61 | 90 | _explicit_args = kwargs.pop('_explicit_args')
|
62 | 91 | _locals = locals()
|
63 | 92 | _locals.update(kwargs) # For wildcard attrs and excess named props
|
64 |
| - args = {k: _locals[k] for k in _explicit_args if k != 'children'} |
65 |
| - for k in []: |
66 |
| - if k not in args: |
67 |
| - raise TypeError( |
68 |
| - 'Required argument `' + k + '` was not specified.') |
| 93 | + args = {k: _locals[k] for k in _explicit_args} |
| 94 | + |
69 | 95 | super(BibCard, self).__init__(**args)
|
| 96 | + |
| 97 | +setattr(BibCard, "__init__", _explicitize_args(BibCard.__init__)) |
0 commit comments