Skip to content

GitLab

  • Menu
    • Projects Groups Snippets
      Help
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • P project04
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • cs1-24fa
  • project04
  • Repository

Switch branch/tag
  • project04
  • support
  • types.py
Find file BlameHistoryPermalink
  • Antonio Caceres's avatar
    Change Pendulum to PendulumEntry and add separate Pendulum type. · aa0fcbe7
    Antonio Caceres authored 8 months ago
    aa0fcbe7
types.py 414 Bytes
EditWeb IDE
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24

from vpython import box, cylinder, sphere, vector

from typing import Any, TypedDict


VPythonColor = vector
VPythonTexture = str
Pendulum = tuple[box, sphere, cylinder]


class PendAttrs(TypedDict):
    masses: str
    restitution_coeffs: str
    colors: str
    textures: str


class PendulumEntry(TypedDict):
    pendulum: Pendulum
    theta: float
    omega: float
    masses: str
    restitution_coeffs: str

Replace types.py

Attach a file by drag & drop or click to upload


Cancel
GitLab will create a branch in your fork and start a merge request.

Menu

Projects Groups Snippets
Help