Skip to content

Commit

Permalink
Add missing Optional marker in argument typing
Browse files Browse the repository at this point in the history
  • Loading branch information
guillaumekln committed Jun 17, 2022
1 parent a71d783 commit a36063b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/ctranslate2/specs/model_spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import shutil
import struct

from typing import Dict, List
from typing import Dict, List, Optional

import numpy as np

Expand Down Expand Up @@ -185,7 +185,7 @@ def _quantize(spec, name, value):

self._visit(_quantize)

def optimize(self, quantization: str = None) -> None:
def optimize(self, quantization: Optional[str] = None) -> None:
"""Recursively applies some optimizations to this layer:
* Alias variables with the same shape and value.
Expand Down

0 comments on commit a36063b

Please sign in to comment.