Skip to content

Commit

Permalink
Updated src/
Browse files Browse the repository at this point in the history
  • Loading branch information
shner-elmo committed Jun 24, 2024
1 parent 7eb5f91 commit 3089c42
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 3,998 deletions.
1 change: 0 additions & 1 deletion src/tradingview_screener/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,5 @@

from __future__ import annotations

from tradingview_screener.screener import Scanner, get_all_symbols
from tradingview_screener.column import Column, col
from tradingview_screener.query import Query, And, Or
10 changes: 1 addition & 9 deletions src/tradingview_screener/column.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from __future__ import annotations

from typing import TYPE_CHECKING
from tradingview_screener.constants import COLUMNS


if TYPE_CHECKING:
Expand Down Expand Up @@ -29,14 +28,7 @@ class Column:
"""

def __init__(self, name: str) -> None:
"""
Create a column object from a given column name
:param name: string, should be either a key or a value from the `COLUMNS` dictionary
"""
# if `name` is a dictionary key: get its value. otherwise make sure that it's a
# dictionary value.
self.name = COLUMNS.get(name, name)
self.name = name

@staticmethod
def _extract_name(obj) -> ...:
Expand Down
Loading

0 comments on commit 3089c42

Please sign in to comment.