Returns True if the model should not be in the main init.
(model)
| 281 | |
| 282 | |
| 283 | def is_a_private_model(model): |
| 284 | """Returns True if the model should not be in the main init.""" |
| 285 | if model in PRIVATE_MODELS: |
| 286 | return True |
| 287 | |
| 288 | # Wrapper, Encoder and Decoder are all privates |
| 289 | if model.endswith("Wrapper"): |
| 290 | return True |
| 291 | if model.endswith("Encoder"): |
| 292 | return True |
| 293 | if model.endswith("Decoder"): |
| 294 | return True |
| 295 | return False |
| 296 | |
| 297 | |
| 298 | def check_models_are_in_init(): |
no outgoing calls
no test coverage detected