Skip to content

Commit

Permalink
doc(profile): annotate class variable with ClassVar
Browse files Browse the repository at this point in the history
  • Loading branch information
ljgray committed Mar 28, 2024
1 parent 0b4ebfb commit d6fe182
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions caput/profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import os
import time
from pathlib import Path
from typing import Optional
from typing import ClassVar, Optional

import numpy as np
import psutil
Expand All @@ -29,7 +29,7 @@ class Profiler:
current directory.
"""

profilers = ["cprofile", "pyinstrument"]
profilers: ClassVar = ["cprofile", "pyinstrument"]

def __init__(
self,
Expand Down

0 comments on commit d6fe182

Please sign in to comment.