This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
[dependencies] | |
tabled = "*" | |
*/ | |
fn main() { | |
let mut builder = tabled::builder::Builder::default(); | |
let cell_data = (0..10).map(|v| format!("#{v:02}")).collect::<Vec<_>>().join("\n"); | |
builder.add_record(vec![cell_data.clone(), cell_data.clone()]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import unittest | |
from typing import Any, Type | |
from dataclasses import dataclass, is_dataclass | |
from pydantic import BaseModel, ValidationError | |
from pydantic.main import MetaModel | |
AnyType = Type[Any] |