Skip to content

Commit

Permalink
Remove Final typing
Browse files Browse the repository at this point in the history
- Python 3.7 does not support Final
  • Loading branch information
Yasas committed Jun 18, 2021
1 parent b179d88 commit f49efd1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions textflow/metrics/agreement.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
This module implements one class :class:`AgreementScore`
"""
from functools import reduce
from typing import Final

import numpy as np
from sklearn import metrics as skm
Expand All @@ -29,7 +28,7 @@ def __init__(self, dataset, blacklist=None):
dataset = pd.DataFrame(dataset, columns=['coder', 'item', 'label'])
self._dataset = dataset
self._blacklist = blacklist
self.coder_pairs: Final = self._get_pairs()
self.coder_pairs = self._get_pairs()

def _get_pairs(self):
"""Gets coder pairs in dataset
Expand Down

0 comments on commit f49efd1

Please sign in to comment.