def get_tshark_display_filter_flag(tshark_version):
    """Returns '-Y' for tshark versions >= 1.10.0 and '-R' for older versions."""
    if tshark_version >= version.parse("1.10.0"):
        return "-Y"
    else:
        return "-R"
Returns '-Y' for tshark versions >= 1.10.0 and '-R' for older versions.
src/pyshark/tshark/tshark.py