(c: OptSeq)
| 22022 | |
| 22023 | |
| 22024 | def CheckColor(c: OptSeq): |
| 22025 | if c: |
| 22026 | if ( |
| 22027 | type(c) not in (list, tuple) |
| 22028 | or len(c) not in (1, 3, 4) |
| 22029 | or min(c) < 0 |
| 22030 | or max(c) > 1 |
| 22031 | ): |
| 22032 | raise ValueError("need 1, 3 or 4 color components in range 0 to 1") |
| 22033 | |
| 22034 | |
| 22035 | def CheckFont(page: Page, fontname: str) -> tuple: |
no outgoing calls
no test coverage detected
searching dependent graphs…